Skip to content

Commit bf64ca7

Browse files
committed
Skip ejection of tanks and energy when all containers are empty
1 parent cab368c commit bf64ca7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/mekanism/common/tile/component/TileComponentEjector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ private void eject(TransmissionType type, Direction facing, ConfigInfo info) {
177177
for (DataType dataType : info.getSupportedDataTypes()) {
178178
if (dataType.canOutput()) {
179179
ISlotInfo slotInfo = info.getSlotInfo(dataType);
180-
if (slotInfo != null) {
180+
if (slotInfo != null && !slotInfo.isEmpty()) {//Only bother getting caps if the containers are not empty
181181
Set<Direction> outputSides = getSidesForData(info, facing, dataType);
182182
if (!outputSides.isEmpty()) {
183183
if (outputData == null) {

0 commit comments

Comments
 (0)