Skip to content

Commit

Permalink
allow insert for import hatches
Browse files Browse the repository at this point in the history
  • Loading branch information
ghzdude committed Dec 29, 2024
1 parent 97405ab commit 4fa7eb4
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,8 @@ public boolean usesMui2() {
public ModularPanel buildUI(PosGuiData guiData, PanelSyncManager guiSyncManager) {
var fluidSyncHandler = GTFluidSlot.sync(fluidTank)
.showAmount(false)
.accessibility(true, false)
.onLockFluid(() -> this.lockedFluid, stack -> {
if (!isExportHatch) return;
setLocked(stack);
});
.accessibility(true, !isExportHatch)
.onLockFluid(() -> this.lockedFluid, this::setLocked);

return GTGuis.createPanel(this, 176, 166)
.child(IKey.lang(getMetaFullName()).asWidget().pos(6, 6))
Expand Down Expand Up @@ -321,6 +318,7 @@ private boolean isLocked() {
}

private void setLocked(FluidStack fluidStack) {
if (!isExportHatch) return;
this.locked = fluidStack != null;
this.lockedFluid = fluidStack == null ? null : fluidStack.copy();
if (this.lockedFluid != null)
Expand Down

0 comments on commit 4fa7eb4

Please sign in to comment.