diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/eu/olli/cowmoonication/listener/PlayerListener.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/olli/cowmoonication/listener/PlayerListener.java b/src/main/java/eu/olli/cowmoonication/listener/PlayerListener.java index 12fe6f3..3c8dd87 100644 --- a/src/main/java/eu/olli/cowmoonication/listener/PlayerListener.java +++ b/src/main/java/eu/olli/cowmoonication/listener/PlayerListener.java @@ -35,7 +35,7 @@ public class PlayerListener { if (!MooConfig.showAdvancedTooltips) { return; } - if (e.entityPlayer.openContainer instanceof ContainerChest) { + if (e.entityPlayer != null && e.entityPlayer.openContainer instanceof ContainerChest) { // for auction house: show price for each item if multiple items are sold at once int stackSize = e.itemStack.stackSize; if ((stackSize == 1 && !isSubmitBidItem(e.itemStack)) || e.toolTip.size() < 4) { |