Fixed #395 - Switch wire crash

This commit is contained in:
Calclavia 2014-03-07 18:22:23 -08:00
parent be889b7064
commit 466e79e153

View file

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