 +				{
 +					for(int i = 0; i < inventoryRows * 9; 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);

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

+					for(int i = inventoryRows * 9; i < inventoryRows * 9
+						+ 44; i++)
+					{
+						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);
