Fixed a NullPointerException in WiredHandler

This commit is contained in:
Beny 2019-05-17 07:35:53 +01:00
parent 2e6d2b69a9
commit 7759f62a3d

View File

@ -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()))