Fixed #395 - Switch wire crash
This commit is contained in:
parent
be889b7064
commit
466e79e153
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue