Skip to content

Commit 6244208

Browse files
allow taking stuff out of input hatches lol
1 parent bd93d86 commit 6244208

File tree

1 file changed

+1
-34
lines changed

1 file changed

+1
-34
lines changed

src/main/java/com/gregtechceu/gtceu/common/machine/multiblock/part/DualHatchPartMachine.java

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,13 @@ public ModularPanel buildUI(PosGuiData data, PanelSyncManager syncManager, UISet
194194
.toArray(String[]::new))
195195
.key('I', i -> {
196196
ModularSlot slot = new ModularSlot(getInventory(), i)
197-
.accessibility(io.support(IO.IN), io.support(IO.OUT));
197+
.accessibility(io.support(IO.IN), true);
198198
ItemSlotSH syncHandler = new ItemSlotSH(slot.slotGroup(slotGroup));
199199
syncManager.syncValue(slotGroupName, i, syncHandler);
200200
return new ItemSlot().syncHandler(slotGroupName, i);
201201
})
202202
.key('F', i -> {
203203
FluidSlotSyncHandler syncHandler = new FluidSlotSyncHandler(tank.getStorages()[i])
204-
.canDrainSlot(io.support(IO.OUT))
205204
.canFillSlot(io.support(IO.IN));
206205
syncManager.syncValue(slotGroupName + "_fluid", i, syncHandler);
207206
return new FluidSlot().syncHandler(slotGroupName + "_fluid", i);
@@ -238,38 +237,6 @@ public ModularPanel buildUI(PosGuiData data, PanelSyncManager syncManager, UISet
238237
"gtceu.multiblock.universal.distinct.no"))))));
239238
}
240239

241-
/*
242-
* @Override
243-
* public Widget createUIWidget() {
244-
* int slots = getInventorySize();
245-
* int tanks = (int) Math.sqrt(slots);
246-
* var group = new WidgetGroup(0, 0, 18 * (tanks + 1) + 16, 18 * tanks + 16);
247-
* var container = new WidgetGroup(4, 4, 18 * (tanks + 1) + 8, 18 * tanks + 8);
248-
*
249-
* int index = 0;
250-
* for (int y = 0; y < tanks; y++) {
251-
* for (int x = 0; x < tanks; x++) {
252-
* container.addWidget(new SlotWidget(
253-
* getInventory().storage, index++, 4 + x * 18, 4 + y * 18, true, io.support(IO.IN))
254-
* .setBackgroundTexture(GuiTextures.SLOT)
255-
* .setIngredientIO(this.io == IO.IN ? IngredientIO.INPUT : IngredientIO.OUTPUT));
256-
* }
257-
* }
258-
*
259-
* index = 0;
260-
* for (int y = 0; y < tanks; y++) {
261-
* container.addWidget(new TankWidget(
262-
* tank.getStorages()[index++], 4 + tanks * 18, 4 + y * 18, true, io.support(IO.IN))
263-
* .setBackground(GuiTextures.FLUID_SLOT));
264-
* }
265-
*
266-
* container.setBackground(GuiTextures.BACKGROUND_INVERSE);
267-
* group.addWidget(container);
268-
* return group;
269-
* }
270-
*/
271-
272-
273240

274241
@Override
275242
public ManagedFieldHolder getFieldHolder() {

0 commit comments

Comments
 (0)