aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/eu/olli
diff options
context:
space:
mode:
authorCow <cow@volloeko.de>2020-06-24 02:32:45 +0200
committerCow <cow@volloeko.de>2020-06-24 02:32:45 +0200
commitd1b0389bf09f984e8f888cd875438b8bbe3d125f (patch)
tree9ce4ac3c8ae0dc0688ed9659038f201e03fd0a90 /src/main/java/eu/olli
parent4570bbdc873f2c3b0905ca936226118b9a88a7b5 (diff)
downloadCowlection-d1b0389bf09f984e8f888cd875438b8bbe3d125f.tar.gz
Cowlection-d1b0389bf09f984e8f888cd875438b8bbe3d125f.tar.bz2
Cowlection-d1b0389bf09f984e8f888cd875438b8bbe3d125f.zip
Fixed NPE with SBA
Diffstat (limited to 'src/main/java/eu/olli')
-rw-r--r--src/main/java/eu/olli/cowmoonication/listener/PlayerListener.java2
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) {