mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-27 00:40: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)
|
if(targetRoom == null)
|
||||||
|
{
|
||||||
|
Emulator.getThreading().run(new TeleportActionFive(this.currentTeleport, this.room, this.client), 0);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (targetRoom.isPreLoaded())
|
if (targetRoom.isPreLoaded())
|
||||||
{
|
{
|
||||||
@ -49,7 +52,10 @@ class TeleportActionThree implements Runnable
|
|||||||
targetTeleport = targetRoom.getHabboItem(((InteractionTeleport) this.currentTeleport).getTargetId());
|
targetTeleport = targetRoom.getHabboItem(((InteractionTeleport) this.currentTeleport).getTargetId());
|
||||||
|
|
||||||
if(targetTeleport == null)
|
if(targetTeleport == null)
|
||||||
|
{
|
||||||
|
Emulator.getThreading().run(new TeleportActionFive(this.currentTeleport, this.room, this.client), 0);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
RoomTile teleportLocation = targetRoom.getLayout().getTile(targetTeleport.getX(), targetTeleport.getY());
|
RoomTile teleportLocation = targetRoom.getLayout().getTile(targetTeleport.getX(), targetTeleport.getY());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user