mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-22 23:10:52 +01:00
Fixed Teleports breaking when you pick one up before teleporting is completed.
This commit is contained in:
parent
104368006d
commit
58feeb998c
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user