diff --git a/electrical/src/main/java/resonantinduction/electrical/wire/framed/PartFramedSwitchWire.java b/electrical/src/main/java/resonantinduction/electrical/wire/framed/PartFramedSwitchWire.java index 73cee964..d5945bea 100644 --- a/electrical/src/main/java/resonantinduction/electrical/wire/framed/PartFramedSwitchWire.java +++ b/electrical/src/main/java/resonantinduction/electrical/wire/framed/PartFramedSwitchWire.java @@ -37,7 +37,7 @@ public class PartFramedSwitchWire extends PartFramedWire TileMultipart tile = tile(); World w = world(); - if (item.getItem().itemID == Block.lever.blockID) + if (item != null && item.getItem().itemID == Block.lever.blockID) { if (!w.isRemote) {