Skip to content

Commit 837eae7

Browse files
committed
Disable configuring top side of the pigment mixer as it is inaccessible (#8150)
1 parent ff38901 commit 837eae7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/main/java/mekanism/common/attachments/component/AttachedSideConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public record AttachedSideConfig(Map<TransmissionType, LightConfigInfo> configIn
103103
Map<TransmissionType, LightConfigInfo> configInfo = new EnumMap<>(TransmissionType.class);
104104
configInfo.put(TransmissionType.ITEM, LightConfigInfo.TWO_INPUT_ITEM);
105105
configInfo.put(TransmissionType.PIGMENT, LightConfigInfo.TWO_INPUT_AND_OUT);
106-
configInfo.put(TransmissionType.ENERGY, LightConfigInfo.INPUT_ONLY);
106+
configInfo.put(TransmissionType.ENERGY, LightConfigInfo.INPUT_ONLY_NO_TOP);
107107
return new AttachedSideConfig(configInfo);
108108
});
109109

@@ -257,6 +257,7 @@ public record LightConfigInfo(Map<RelativeSide, DataType> sideConfig, boolean is
257257
public static final LightConfigInfo RIGHT_OUTPUT = new LightConfigInfo(Map.of(RelativeSide.RIGHT, DataType.OUTPUT), true);
258258

259259
public static final LightConfigInfo FRONT_OUT_EJECT_NO_TOP = without(FRONT_OUT_EJECT, RelativeSide.TOP);
260+
public static final LightConfigInfo INPUT_ONLY_NO_TOP = without(INPUT_ONLY, RelativeSide.TOP);
260261

261262
public static final LightConfigInfo INPUT_OUT_ALL = Util.make(() -> {
262263
Map<RelativeSide, DataType> sideConfig = new EnumMap<>(RelativeSide.class);

src/main/java/mekanism/common/tile/machine/TileEntityPigmentMixer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import java.util.List;
44
import mekanism.api.IContentsListener;
5+
import mekanism.api.RelativeSide;
56
import mekanism.api.Upgrade;
67
import mekanism.api.chemical.ChemicalTankBuilder;
78
import mekanism.api.chemical.pigment.IPigmentTank;
@@ -119,6 +120,7 @@ public TileEntityPigmentMixer(BlockPos pos, BlockState state) {
119120
}
120121

121122
configComponent.setupInputConfig(TransmissionType.ENERGY, energyContainer);
123+
configComponent.addDisabledSides(RelativeSide.TOP);
122124

123125
ejectorComponent = new TileComponentEjector(this);
124126
ejectorComponent.setOutputData(configComponent, TransmissionType.ITEM, TransmissionType.PIGMENT)

0 commit comments

Comments
 (0)