mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-19 19:59:49 +00:00
Fix Slot Registration Crash (#73)
This commit is contained in:
1 parent
d24088ea4b
commit
e6c67df077
22 files changed
+115
-81
No files matched your search
@@ -53,11 +53,13 @@ public class WindowInoculator extends WindowMachine {
|
||||
CraftGUIUtil.horizontalGrid(
|
||||
x,
|
||||
y,
|
||||
new ControlSlotArray(this, 0, 0, 2, 1).create(Inoculator.SLOT_SERUM_RESERVE),
|
||||
new ControlSlotArray(this, 0, 0, 2, 1)
|
||||
.create(actions, InventoryType.Machine, Inoculator.SLOT_SERUM_RESERVE),
|
||||
new ControlIconDisplay(this, 0.0f, 0.0f, GUIIcon.ArrowRight.getIcon()),
|
||||
new ControlSlot(this, 0.0f, 0.0f).assign(actions, InventoryType.Machine, 0),
|
||||
new ControlIconDisplay(this, 0.0f, 0.0f, GUIIcon.ArrowRight.getIcon()),
|
||||
new ControlSlotArray(this, 0, 0, 2, 1).create(Inoculator.SLOT_SERUM_EXPENDED));
|
||||
new ControlSlotArray(this, 0, 0, 2, 1)
|
||||
.create(actions, InventoryType.Machine, Inoculator.SLOT_SERUM_EXPENDED));
|
||||
x += 18;
|
||||
new ControlMachineProgress(
|
||||
this,
|
||||
@@ -74,12 +76,13 @@ public class WindowInoculator extends WindowMachine {
|
||||
y,
|
||||
TextJustification.MIDDLE_LEFT,
|
||||
8.0f,
|
||||
new ControlSlotArray(this, x, y, 4, 1).create(Inoculator.SLOT_RESERVE),
|
||||
new ControlSlotArray(this, x, y, 4, 1).create(actions, InventoryType.Machine, Inoculator.SLOT_RESERVE),
|
||||
new ControlSlot(this, x, y + 18 + 8).assign(actions, InventoryType.Machine, 9),
|
||||
new ControlSlotArray(this, x, y + 18 + 8 + 18 + 8, 4, 1).create(Inoculator.SLOT_FINISHED));
|
||||
new ControlSlotArray(this, x, y + 18 + 8 + 18 + 8, 4, 1)
|
||||
.create(actions, InventoryType.Machine, Inoculator.SLOT_FINISHED));
|
||||
new ControlIconDisplay(this, x + 18, y + 18 + 2, GUIIcon.ArrowUpLeft.getIcon());
|
||||
new ControlIconDisplay(this, x + 18, y + 18 + 18, GUIIcon.ArrowLeftDown.getIcon());
|
||||
new ControlPlayerInventory(this);
|
||||
new ControlPlayerInventory(this).create(actions);
|
||||
|
||||
MessageCraftGUI.sendToServer(actions);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user