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.
This commit is contained in:
KrewsOrg 2019-05-01 02:55:21 +01:00
parent 614258357b
commit 146ec8212a

View File

@ -5622,8 +5622,8 @@ public class Room implements Comparable<Room>, 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)