NPE fix for CommandMachine when dev staff is null
This commit is contained in:
parent
a4e300ad9a
commit
182876fb09
|
@ -196,7 +196,7 @@ public class CommandMachine extends CommandBase
|
|||
{
|
||||
if (event.action == Action.RIGHT_CLICK_BLOCK)
|
||||
{
|
||||
if (event.entityPlayer.getHeldItem() != null && event.entityPlayer.getHeldItem().itemID == ResonantInduction.itemDevStaff.itemID)
|
||||
if (event.entityPlayer.getHeldItem() != null && ResonantInduction.itemDevStaff != null && event.entityPlayer.getHeldItem().itemID == ResonantInduction.itemDevStaff.itemID)
|
||||
{
|
||||
if (event.entityPlayer.isSneaking())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue