diff --git a/src/main/java/com/gregtechceu/gtceu/api/machine/feature/multiblock/IDistinctPart.java b/src/main/java/com/gregtechceu/gtceu/api/machine/feature/multiblock/IDistinctPart.java index 3ff3f7d323..a1b45691fa 100644 --- a/src/main/java/com/gregtechceu/gtceu/api/machine/feature/multiblock/IDistinctPart.java +++ b/src/main/java/com/gregtechceu/gtceu/api/machine/feature/multiblock/IDistinctPart.java @@ -23,7 +23,7 @@ public interface IDistinctPart extends IMultiPart { @Override default void attachConfigurators(ConfiguratorPanel configuratorPanel) { - IMultiPart.super.attachConfigurators(configuratorPanel); + superAttachConfigurators(configuratorPanel); configuratorPanel.attachConfigurators(new IFancyConfiguratorButton.Toggle( GuiTextures.BUTTON_DISTINCT_BUSES.getSubTexture(0, 0.5, 1, 0.5), GuiTextures.BUTTON_DISTINCT_BUSES.getSubTexture(0, 0, 1, 0.5), @@ -34,4 +34,8 @@ default void attachConfigurators(ConfiguratorPanel configuratorPanel) { .append(Component.translatable(pressed ? "gtceu.multiblock.universal.distinct.yes" : "gtceu.multiblock.universal.distinct.no"))))); } + + default void superAttachConfigurators(ConfiguratorPanel configuratorPanel) { + IMultiPart.super.attachConfigurators(configuratorPanel); + } } diff --git a/src/main/java/com/gregtechceu/gtceu/common/machine/multiblock/part/DualHatchPartMachine.java b/src/main/java/com/gregtechceu/gtceu/common/machine/multiblock/part/DualHatchPartMachine.java index 22d4397441..3219e93ade 100644 --- a/src/main/java/com/gregtechceu/gtceu/common/machine/multiblock/part/DualHatchPartMachine.java +++ b/src/main/java/com/gregtechceu/gtceu/common/machine/multiblock/part/DualHatchPartMachine.java @@ -159,7 +159,7 @@ public Widget createUIWidget() { @Override public boolean isDistinct() { - return super.isDistinct() && tank.isDistinct(); + return io != IO.OUT && super.isDistinct() && tank.isDistinct(); } @Override diff --git a/src/main/java/com/gregtechceu/gtceu/common/machine/multiblock/part/ItemBusPartMachine.java b/src/main/java/com/gregtechceu/gtceu/common/machine/multiblock/part/ItemBusPartMachine.java index 817047e35d..de3eca82e5 100644 --- a/src/main/java/com/gregtechceu/gtceu/common/machine/multiblock/part/ItemBusPartMachine.java +++ b/src/main/java/com/gregtechceu/gtceu/common/machine/multiblock/part/ItemBusPartMachine.java @@ -133,7 +133,7 @@ public void onUnload() { @Override public boolean isDistinct() { - return getInventory().isDistinct() && circuitInventory.isDistinct(); + return io != IO.OUT && getInventory().isDistinct() && circuitInventory.isDistinct(); } @Override @@ -193,8 +193,10 @@ public void setWorkingEnabled(boolean workingEnabled) { ////////////////////////////////////// public void attachConfigurators(ConfiguratorPanel configuratorPanel) { - IDistinctPart.super.attachConfigurators(configuratorPanel); - if (this.io == IO.IN) { + if (this.io == IO.OUT) { + IDistinctPart.super.superAttachConfigurators(configuratorPanel); + } else if (this.io == IO.IN) { + IDistinctPart.super.attachConfigurators(configuratorPanel); configuratorPanel.attachConfigurators(new CircuitFancyConfigurator(circuitInventory.storage)); } }