This commit is contained in:
Nedelosk committed 2017-07-29 23:21:02 +02:00
1 parent 68ed8a1511
commit 95dca83465
4 files changed
+8

No files matched your search

@@ -139,8 +139,11 @@ public class WindowFieldKit extends Window {
@Override
public void initialiseServer() {
//create slots
final ItemStack kit = this.getPlayer().getHeldItemMainhand();
final int sheets = 64 - kit.getItemDamage();
getWindowInventory().createSlot(0);
getWindowInventory().createSlot(1);
if (sheets != 0) {
this.getWindowInventory().setInventorySlotContents(1, new ItemStack(Items.PAPER, sheets));
}
@@ -77,6 +77,7 @@ public class ContainerCraftGUI extends Container {
}
}
}
detectAndSendChanges();
}
private Side getSide() {
@@ -273,6 +273,7 @@ public class GuiCraftGUI extends GuiContainer {
@Override
public void onGuiClosed() {
this.window.onClose();
inventorySlots.onContainerClosed(mc.player);
}
public boolean isHelpMode() {
@@ -136,6 +136,9 @@ public class WindowAnalyst extends Window {
}
}
}
//create slots
getWindowInventory().createSlot(0);
getWindowInventory().createSlot(1);
setupValidators();
}