From 419c3d07af27ff38902cb3500d99c89639e2515c Mon Sep 17 00:00:00 2001 From: Beny Date: Mon, 13 May 2019 05:14:29 +0100 Subject: [PATCH] Fixed wired toggle timers not working with user triggers --- .../wired/effects/WiredEffectToggleFurni.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectToggleFurni.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectToggleFurni.java index 69b52a1b..5da0bd05 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectToggleFurni.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectToggleFurni.java @@ -133,13 +133,6 @@ public class WiredEffectToggleFurni extends InteractionWiredEffect HabboItem triggerItem = null; - if (stuff != null && stuff.length > 0) - { - if (stuff[0] instanceof HabboItem) - { - } - } - THashSet itemsToRemove = new THashSet<>(); for (HabboItem item : this.items) { @@ -153,7 +146,7 @@ public class WiredEffectToggleFurni extends InteractionWiredEffect { if (item.getBaseItem().getStateCount() > 1 || item instanceof InteractionGameTimer) { - item.onClick(habbo != null ? habbo.getClient() : null, room, new Object[]{item.getExtradata().length() == 0 ? 0 : Integer.valueOf(item.getExtradata()), this.getType()}); + item.onClick(habbo != null && !(item instanceof InteractionGameTimer) ? habbo.getClient() : null, room, new Object[]{item.getExtradata().length() == 0 ? 0 : Integer.valueOf(item.getExtradata()), this.getType()}); } } catch (Exception e)