mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
Fixed wired toggle timers not working with user triggers
This commit is contained in:
parent
af92316188
commit
419c3d07af
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user