Replaced instanceof L2Character with isCharacter method.

This commit is contained in:
MobiusDev
2018-06-30 16:42:41 +00:00
parent d806ff66e5
commit 049a9b02aa
179 changed files with 270 additions and 282 deletions

View File

@@ -1097,7 +1097,7 @@ public class GameStatusThread extends Thread
{
continue;
}
if (obj instanceof L2Character)
if (obj.isCharacter())
{
if (((L2Character) obj).hasAI())
{
@@ -1144,7 +1144,7 @@ public class GameStatusThread extends Thread
{
doorCount++;
}
else if (obj instanceof L2Character)
else if (obj.isCharacter())
{
charCount++;
}