Add null check from later Baubles version

This commit is contained in:
jss2a98aj committed 2020-04-28 00:54:42 -04:00
1 parent 0c383f7175
commit 21fc5ea8c9
1 file changed
+2 -1
@@ -142,7 +142,8 @@ public class InventoryBaubles implements IInventory {
}
this.stackList[par1] = stack;
if (!blockEvents && stack != null && stack.getItem() instanceof IBauble) {
((IBauble) stack.getItem()).onEquipped(stack, player.get());
if (player.get()!=null)
((IBauble) stack.getItem()).onEquipped(stack, player.get());
}
if (eventHandler != null)
this.eventHandler.onCraftMatrixChanged(this);