From 800b008b55699170b63627e2cd676d759cde1e4d Mon Sep 17 00:00:00 2001 From: skeletor Date: Sat, 22 Feb 2020 17:40:12 -0500 Subject: [PATCH] Don't activate match furni effect if settings are not configured --- .../interactions/wired/effects/WiredEffectMatchFurni.java | 4 +++- 1 file changed, 3 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 dc90e2b7..b318a033 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 @@ -44,6 +44,9 @@ public class WiredEffectMatchFurni extends InteractionWiredEffect { THashSet tilesToUpdate = new THashSet<>(this.settings.size()); //this.refresh(); + if(this.settings.isEmpty()) + return false; + for (WiredMatchFurniSetting setting : this.settings) { HabboItem item = room.getHabboItem(setting.itemId); if (item != null) { @@ -126,7 +129,6 @@ public class WiredEffectMatchFurni extends InteractionWiredEffect { if (slideAnimation && t != null) { room.sendComposer(new FloorItemOnRollerComposer(item, null, t, offsetZ, room).compose()); - room.updateTiles(room.getLayout().getTilesAt(room.getLayout().getTile(item.getX(), item.getY()), item.getBaseItem().getWidth(), item.getBaseItem().getLength(), item.getRotation())); } else { room.updateItem(item); }