 +	public void initGui()
 +	{
 +		super.initGui();
-+		buttonList.add(new GuiButton(0, guiLeft + xSize - 108, guiTop + 4, 50,
-+			12, "Steal"));
-+		buttonList.add(new GuiButton(1, guiLeft + xSize - 56, guiTop + 4, 50,
-+			12, "Store"));
++		if(!WurstClient.INSTANCE.isEnabled())
++			return;
++		GuiButton stealButton = new GuiButton(0, guiLeft + xSize - 108,
++			guiTop + 4, 50, 12, "Steal");
++		GuiButton storeButton =
++			new GuiButton(1, guiLeft + xSize - 56, guiTop + 4, 50, 12, "Store");
++		buttonList.add(stealButton);
++		buttonList.add(storeButton);
++		if(!WurstClient.INSTANCE.mods.autoStealMod.areButtonsVisible())
++		{
++			stealButton.visible = false;
++			storeButton.visible = false;
++		}
 +		if(WurstClient.INSTANCE.mods.autoStealMod.isActive())
-+			actionPerformed((GuiButton)buttonList.get(0));
++			actionPerformed(stealButton);
 +	}
 +	
 +	// TODO: Client

From d60fc0464aad13d43c1f058cf66122114182e08e Mon Sep 17 00:00:00 2001
From: Alexander01998 <contact.wurstimperium@gmail.com>
Date: Thu, 18 May 2017 19:41:56 +0200
Subject: [PATCH] mod

---

+	protected void actionPerformed(GuiButton button)
+	{
+		if(button.id == 0)// Steal
+			new Thread(() -> {
+				try
+				{
+					for(int i = 0; i < inventoryRows * 9; i++)
+					{
+						Slot slot = (Slot)inventorySlots.inventorySlots.get(i);
+						if(slot.getStack() == null)
+							continue;
+						if(WurstClient.INSTANCE.special.yesCheatSpf.getProfile()
+							.ordinal() >= Profile.ANTICHEAT.ordinal())
+							Thread.sleep(250);
+						handleMouseClick(slot, slot.slotNumber, 0,
+							ClickType.QUICK_MOVE);
+					}
+				}catch(Exception e)
+				{
+					e.printStackTrace();
+				}
+			}).start();
+		else if(button.id == 1)// Store
+			new Thread(() -> {
+				try
+				{
+					for(int i = inventoryRows * 9; i < inventoryRows * 9
+						+ 44; i++)
+					{
+						Slot slot = (Slot)inventorySlots.inventorySlots.get(i);
+						if(slot.getStack() == null)
+							continue;
+						if(WurstClient.INSTANCE.special.yesCheatSpf.getProfile()
+							.ordinal() >= Profile.ANTICHEAT.ordinal())
+							Thread.sleep(250);
+						handleMouseClick(slot, slot.slotNumber, 0,
+							ClickType.QUICK_MOVE);
+					}
+				}catch(Exception e)
+				{
+					e.printStackTrace();
+				}
+			}).start();
+	}
