Fixed wired toggle timers not working with user triggers

This commit is contained in:
Beny 2019-05-13 05:14:29 +01:00
parent af92316188
commit 419c3d07af

View File

@ -133,13 +133,6 @@ public class WiredEffectToggleFurni extends InteractionWiredEffect
HabboItem triggerItem = null;
if (stuff != null && stuff.length > 0)
{
if (stuff[0] instanceof HabboItem)
{
}
}
THashSet<HabboItem> 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)