aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker
diff options
context:
space:
mode:
authorMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2020-12-05 11:11:00 -0500
committerMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2020-12-05 11:11:00 -0500
commit3560ed09728cafd643a505043568221ef8933ea7 (patch)
tree6cd173d25cbcd507ec333b3430108d48797e9912 /src/main/java/me/Danker
parent719a0b3e35d0cf472312021d28648395d66dab4c (diff)
downloadSkyblockMod-3560ed09728cafd643a505043568221ef8933ea7.tar.gz
SkyblockMod-3560ed09728cafd643a505043568221ef8933ea7.tar.bz2
SkyblockMod-3560ed09728cafd643a505043568221ef8933ea7.zip
Update DankersSkyblockMod.java
Diffstat (limited to 'src/main/java/me/Danker')
-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 (")) {