mirror of
https://github.com/GTNewHorizons/Baubles-Expanded.git
synced 2026-11-26 23:03:07 +00:00
Add null check from later Baubles version
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user