From 6d019479420adb31289b4224072e812cd49f43ec Mon Sep 17 00:00:00 2001 From: Yordi Date: Wed, 16 Oct 2024 10:33:52 +0200 Subject: [PATCH] Fixed wired teleporting breaks after teleporting from another room --- .../com/eu/habbo/threading/runnables/RoomUnitTeleport.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/eu/habbo/threading/runnables/RoomUnitTeleport.java b/src/main/java/com/eu/habbo/threading/runnables/RoomUnitTeleport.java index 9cbe83c6..d315d6d0 100644 --- a/src/main/java/com/eu/habbo/threading/runnables/RoomUnitTeleport.java +++ b/src/main/java/com/eu/habbo/threading/runnables/RoomUnitTeleport.java @@ -34,9 +34,14 @@ public class RoomUnitTeleport implements Runnable { @Override public void run() { - if (roomUnit == null || roomUnit.getRoom() == null || room.getLayout() == null || roomUnit.isLeavingTeleporter) + if (roomUnit == null || roomUnit.getRoom() == null || room.getLayout() == null) return; + if (roomUnit.isLeavingTeleporter) { + roomUnit.isWiredTeleporting = false; + return; + } + RoomTile lastLocation = this.roomUnit.getCurrentLocation(); RoomTile newLocation = this.room.getLayout().getTile((short) this.x, (short) this.y);