diff options
author | My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> | 2020-12-05 11:11:00 -0500 |
---|---|---|
committer | My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> | 2020-12-05 11:11:00 -0500 |
commit | 3560ed09728cafd643a505043568221ef8933ea7 (patch) | |
tree | 6cd173d25cbcd507ec333b3430108d48797e9912 /src/main/java | |
parent | 719a0b3e35d0cf472312021d28648395d66dab4c (diff) | |
download | SkyblockMod-3560ed09728cafd643a505043568221ef8933ea7.tar.gz SkyblockMod-3560ed09728cafd643a505043568221ef8933ea7.tar.bz2 SkyblockMod-3560ed09728cafd643a505043568221ef8933ea7.zip |
Update DankersSkyblockMod.java
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/me/Danker/DankersSkyblockMod.java | 3 |
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 (")) { |