From dc8c0e0bcb768a4b95f448488ee9192c36c1a2da Mon Sep 17 00:00:00 2001 From: Snaiker Date: Sun, 3 Jan 2021 21:58:43 +0000 Subject: [PATCH] Fix issue #934 --- src/main/java/com/eu/habbo/habbohotel/rooms/Room.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java b/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java index d0704c82..b5e171dc 100644 --- a/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java +++ b/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java @@ -1506,6 +1506,11 @@ public class Room implements Comparable, ISerialize, Runnable { if (unit.hasStatus(RoomUnitStatus.SIT)) { unit.sitUpdate = true; } + + unit.setPreviousLocation(unit.getPreviousLocation()); + unit.setPreviousLocationZ(unit.getPreviousLocation().getStackHeight()); + unit.setCurrentLocation(this.getLayout().getTile(tile.x, tile.y)); + unit.setZ(unit.getCurrentLocation().getStackHeight()); } }