aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/me/Danker/DankersSkyblockMod.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/me/Danker/DankersSkyblockMod.java b/src/main/java/me/Danker/DankersSkyblockMod.java
index 6cb7e87..a385c05 100644
--- a/src/main/java/me/Danker/DankersSkyblockMod.java
+++ b/src/main/java/me/Danker/DankersSkyblockMod.java
@@ -2607,7 +2607,8 @@ public class DankersSkyblockMod
}
}
if(mc.currentScreen instanceof GuiChest) {
- ContainerChest chest = (ContainerChest) mc.thePlayer.openContainer;
+ if(player == null) return;
+ ContainerChest chest = (ContainerChest) player.openContainer;
IInventory inv = chest.getLowerChestInventory();
String chestName = inv.getDisplayName().getUnformattedText();
if (ToggleCommand.superpairsToggled && chestName.contains("Superpairs (")) {