Skip to content

Commit 60dfb04

Browse files
committed
Don't say "no steam" when vent is blocked
1 parent ac8b10a commit 60dfb04

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/gregtech/common/metatileentities/steam/SteamMiner.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,11 @@ public ModularPanel buildUI(PosGuiData guiData, PanelSyncManager panelSyncManage
198198
text.addLine(KeyUtil.lang(TextFormatting.RED, "gregtech.machine.steam_miner.vent"));
199199
}
200200

201-
if (!hasEnoughEnergySync.getBoolValue()) {
201+
// Drain energy always returns false when the vent is blocked, so check that it isn't
202+
// blocked.
203+
// It should be fine since I don't think it can even enter the vent blocked state without
204+
// having steam.
205+
if (!hasEnoughEnergySync.getBoolValue() && !isVentBlockedSync.getBoolValue()) {
202206
text.addLine(KeyUtil.lang(TextFormatting.RED, "gregtech.machine.steam_miner.steam"));
203207
}
204208
})

0 commit comments

Comments
 (0)