Replaced instanceof L2Playable with isPlayable method.
This commit is contained in:
@@ -51,7 +51,7 @@ public class AdminLevel implements IAdminCommandHandler
|
||||
{
|
||||
try
|
||||
{
|
||||
if (targetChar instanceof L2Playable)
|
||||
if ((targetChar != null) && targetChar.isPlayable())
|
||||
{
|
||||
((L2Playable) targetChar).getStat().addLevel(Byte.parseByte(val));
|
||||
}
|
||||
|
@@ -475,7 +475,7 @@ public final class AdminPForge implements IAdminCommandHandler
|
||||
case "$tboid":
|
||||
{
|
||||
target = activeChar.getTarget();
|
||||
if ((target != null) && (target instanceof L2Playable))
|
||||
if ((target != null) && target.isPlayable())
|
||||
{
|
||||
boat = ((L2Playable) target).getActingPlayer().getBoat();
|
||||
if (boat != null)
|
||||
|
Reference in New Issue
Block a user