From f00c5136cde42b2f7ee8591e8bf32d7ec980222c Mon Sep 17 00:00:00 2001 From: harmonic Date: Fri, 5 Jun 2020 17:30:54 +0100 Subject: [PATCH] Fixed WiredEffectMatchFurni to no longer send furniture under users. (Like Habbo) --- .../interactions/wired/effects/WiredEffectMatchFurni.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectMatchFurni.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectMatchFurni.java index f4642bf5..6b337571 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectMatchFurni.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectMatchFurni.java @@ -89,11 +89,12 @@ public class WiredEffectMatchFurni extends InteractionWiredEffect { if (t != null && t.state != RoomTileState.INVALID) { boolean canMove = true; - if (t.x == item.getX() && t.y == item.getY()) { + if (t.x == item.getX() && t.y == item.getY() || room.hasHabbosAt(t.x, t.y)) { canMove = !(room.getTopItemAt(t.x, t.y) == item); slideAnimation = false; } + if (canMove && !room.hasHabbosAt(t.x, t.y)) { THashSet tiles = room.getLayout().getTilesAt(t, item.getBaseItem().getWidth(), item.getBaseItem().getLength(), setting.rotation); double highestZ = -1d;