NPE fix for CommandMachine when dev staff is null
This commit is contained in:
parent
a4e300ad9a
commit
182876fb09
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ public class CommandMachine extends CommandBase
|
||||||
{
|
{
|
||||||
if (event.action == Action.RIGHT_CLICK_BLOCK)
|
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())
|
if (event.entityPlayer.isSneaking())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue