From 42ebfad128175bb822a32052dd99c0cb9b4f05d4 Mon Sep 17 00:00:00 2001 From: Alejandro <25-alejandro@users.noreply.git.krews.org> Date: Tue, 28 Jan 2020 15:13:32 +0200 Subject: [PATCH] Fix moving/rotatingg furniture in the same coordinates (closes #352) --- src/main/java/com/eu/habbo/habbohotel/rooms/Room.java | 3 +++ 1 file changed, 3 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 652b5cfd..91d0671c 100644 --- a/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java +++ b/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java @@ -4486,8 +4486,11 @@ public class Room implements Comparable, ISerialize, Runnable { } } //Place at new position + double height = this.getStackHeight(tile.x, tile.y, false, item); + if (tile.x == item.getX() && tile.y == item.getY()) height = item.getZ(); if(height > 40d) return FurnitureMovementError.CANT_STACK; + item.setX(tile.x); item.setY(tile.y); item.setZ(height);