Chamber Instance Tele to empty room fix.

Contributed by yksdtc.
This commit is contained in:
MobiusDev 2015-11-10 12:18:14 +00:00
parent 745c66def2
commit a6231ef3f8

View File

@ -330,7 +330,7 @@ public abstract class Chamber extends AbstractInstance
if (world.getInstanceId() == partyMember.getInstanceId()) if (world.getInstanceId() == partyMember.getInstanceId())
{ {
partyMember.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE); partyMember.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
partyMember.teleToLocation(ROOM_ENTER_POINTS[newRoom], true); teleportPlayer(partyMember, ROOM_ENTER_POINTS[newRoom], world.getInstanceId());
} }
} }
@ -517,7 +517,7 @@ public abstract class Chamber extends AbstractInstance
{ {
if ((player.getParty() != null) && (player.getParty() == world.getPartyInside())) if ((player.getParty() != null) && (player.getParty() == world.getPartyInside()))
{ {
player.teleToLocation(ROOM_ENTER_POINTS[world.currentRoom], false); teleportPlayer(player, ROOM_ENTER_POINTS[world.currentRoom], world.getInstanceId(), false);
} }
} }
} }