From 146ec8212a6e735ca1219da92c06f1adea9aab1b Mon Sep 17 00:00:00 2001 From: KrewsOrg Date: Wed, 1 May 2019 02:55:21 +0100 Subject: [PATCH] Fixed Wired not returning to original height. Example, if you use WF_Chase and the furni 'climbs' on top of another furniture it will now return to it's original height when it comes back down. --- src/main/java/com/eu/habbo/habbohotel/rooms/Room.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 2fbc2c77..b6736907 100644 --- a/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java +++ b/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java @@ -5622,8 +5622,8 @@ public class Room implements Comparable, ISerialize, Runnable { item.setZ(40); } - - this.sendComposer(new FloorItemOnRollerComposer(item, null, tile, this.getStackHeight(tile.x, tile.y, false, item), this).compose()); + double offset = this.getStackHeight(tile.x, tile.y, false, item) - item.getZ(); + this.sendComposer(new FloorItemOnRollerComposer(item, null, tile, offset, this).compose()); //Update Habbos at old position for (RoomTile t : occupiedTiles)