 +					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);

From e432c6093ba8567ab950c71fb6181980f0607250 Mon Sep 17 00:00:00 2001
From: Alexander01998 <contact.wurstimperium@gmail.com>
Date: Fri, 19 May 2017 14:18:03 +0200
Subject: [PATCH] mod

---

 .../client/gui/ServerListEntryLanDetected.java     |   2 +-
 .../client/gui/ServerListEntryNormal.java          |  13 +-
 net/minecraft/client/gui/achievement/GuiStats.java |  16 ++
 net/minecraft/client/gui/inventory/GuiChest.java   |  79 +++++++
 .../client/gui/inventory/GuiContainer.java         |  11 +-
 .../client/gui/inventory/GuiEditSign.java          |  17 ++
 net/minecraft/client/main/Main.java                |  10 +-
