Skip to content

Commit 050b38d

Browse files
committed
fix: show invalid oxygen setup warning when the player has an oxygen tank, but not a mask and gear
1 parent 2f0803f commit 050b38d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/dev/galacticraft/mod/client/gui/overlay/OxygenOverlay.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public static void onHudRender(GuiGraphics graphics, DeltaTracker delta) {
8383
DrawableUtil.drawOxygenBuffer(graphics.pose(), x, y, amount, capacity);
8484
}
8585

86-
if (nonBreathable && !(hasOxygen || mc.level.isBreathable(mc.player.blockPosition().above()))) {
86+
if (nonBreathable && !((hasMaskAndGear && hasOxygen) || mc.level.isBreathable(mc.player.blockPosition().above()))) {
8787
final Window scaledresolution = mc.getWindow();
8888
final int width = scaledresolution.getGuiScaledWidth();
8989
final int height = scaledresolution.getGuiScaledHeight();

0 commit comments

Comments
 (0)