mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-26 16:30:52 +01:00
Fixed a NullPointerException in WiredHandler
This commit is contained in:
parent
2e6d2b69a9
commit
7759f62a3d
@ -217,7 +217,7 @@ public class WiredHandler
|
||||
private static boolean triggerEffect(InteractionWiredEffect effect, RoomUnit roomUnit, Room room, Object[] stuff, long millis)
|
||||
{
|
||||
boolean executed = false;
|
||||
if (effect.canExecute(millis))
|
||||
if (effect != null && effect.canExecute(millis))
|
||||
{
|
||||
executed = true;
|
||||
if (!effect.requiresTriggeringUser() || (roomUnit != null && effect.requiresTriggeringUser()))
|
||||
|
Loading…
Reference in New Issue
Block a user