From d1b0389bf09f984e8f888cd875438b8bbe3d125f Mon Sep 17 00:00:00 2001 From: Cow Date: Wed, 24 Jun 2020 02:32:45 +0200 Subject: Fixed NPE with SBA --- src/main/java/eu/olli/cowmoonication/listener/PlayerListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/eu/olli') 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) { -- cgit