Minor improvement for previous commit.

This commit is contained in:
MobiusDev 2018-02-25 11:38:46 +00:00
parent 14e2bbf31e
commit 7dc26ac585

View File

@ -55,9 +55,7 @@ public class DungeonOfAbyssZone extends AbstractNpcAI
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
if (event.startsWith("EXIT_PLAYER"))
{
if (player != null)
if (event.startsWith("EXIT_PLAYER") && (player != null))
{
if (event.contains(ABYSS_WEST_ZONE_1.getName()) && ABYSS_WEST_ZONE_1.getPlayersInside().contains(player))
{
@ -92,7 +90,6 @@ public class DungeonOfAbyssZone extends AbstractNpcAI
player.teleToLocation(EXIT_LOCATION_4);
}
}
}
return super.onAdvEvent(event, npc, player);
}