Merge branch '54-teleporters-glitch-if-you-pick-one-up-before-the-teleportation-has-completed' into 'dev'

Resolve "Teleporters Glitch if you pick one up before the teleportation has completed."

See merge request morningstar/Arcturus-Community!16
This commit is contained in:
Harmonic 2019-05-09 22:47:06 -04:00
commit 1283c02937

View File

@ -39,7 +39,10 @@ class TeleportActionThree implements Runnable
}
if(targetRoom == null)
{
Emulator.getThreading().run(new TeleportActionFive(this.currentTeleport, this.room, this.client), 0);
return;
}
if (targetRoom.isPreLoaded())
{
@ -49,7 +52,10 @@ class TeleportActionThree implements Runnable
targetTeleport = targetRoom.getHabboItem(((InteractionTeleport) this.currentTeleport).getTargetId());
if(targetTeleport == null)
{
Emulator.getThreading().run(new TeleportActionFive(this.currentTeleport, this.room, this.client), 0);
return;
}
RoomTile teleportLocation = targetRoom.getLayout().getTile(targetTeleport.getX(), targetTeleport.getY());