Minor improvement for previous commit.
This commit is contained in:
parent
14e2bbf31e
commit
7dc26ac585
@ -55,9 +55,7 @@ public class DungeonOfAbyssZone extends AbstractNpcAI
|
|||||||
@Override
|
@Override
|
||||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||||
{
|
{
|
||||||
if (event.startsWith("EXIT_PLAYER"))
|
if (event.startsWith("EXIT_PLAYER") && (player != null))
|
||||||
{
|
|
||||||
if (player != null)
|
|
||||||
{
|
{
|
||||||
if (event.contains(ABYSS_WEST_ZONE_1.getName()) && ABYSS_WEST_ZONE_1.getPlayersInside().contains(player))
|
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);
|
player.teleToLocation(EXIT_LOCATION_4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return super.onAdvEvent(event, npc, player);
|
return super.onAdvEvent(event, npc, player);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user