 +					for(int i = inventoryRows * 9; i < inventoryRows * 9
 +						+ 44; i++)
 +					{
-+						Slot slot = (Slot)inventorySlots.inventorySlots.get(i);
-+						if(slot.getStack() == null)
++						Slot slot = inventorySlots.inventorySlots.get(i);
++						if(WItem.isNull(slot.getStack()))
 +							continue;
++						if(mc.currentScreen == null)
++							break;
 +						if(WurstClient.INSTANCE.special.yesCheatSpf.getProfile()
 +							.ordinal() >= Profile.ANTICHEAT.ordinal())
 +							Thread.sleep(250);

+import net.minecraft.inventory.Slot;
 import net.minecraft.util.ResourceLocation;
+import net.wurstclient.WurstClient;
+import net.wurstclient.features.special_features.YesCheatSpf.Profile;
 
 public class GuiChest extends GuiContainer
 {
@@ -30,6 +35,75 @@ public class GuiChest extends GuiContainer
         this.ySize = 114 + this.inventoryRows * 18;
     }
 

             {
                 this.mc.displayGuiScreen(this.parentScreen);
diff --git a/net/minecraft/client/gui/inventory/GuiChest.java b/net/minecraft/client/gui/inventory/GuiChest.java
index cc5b679..0d9aa09 100644
--- a/net/minecraft/client/gui/inventory/GuiChest.java
+++ b/net/minecraft/client/gui/inventory/GuiChest.java
@@ -1,10 +1,16 @@
 package net.minecraft.client.gui.inventory;
 
 import net.minecraft.client.Minecraft;
