From 3560ed09728cafd643a505043568221ef8933ea7 Mon Sep 17 00:00:00 2001 From: My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> Date: Sat, 5 Dec 2020 11:11:00 -0500 Subject: Update DankersSkyblockMod.java --- src/main/java/me/Danker/DankersSkyblockMod.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/me/Danker') 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 (")) { -- cgit