Skip to content

Commit

Permalink
fix: swapped oxygen tanks which were displayed the wrong way round in…
Browse files Browse the repository at this point in the history
… the oxygen overlay
  • Loading branch information
Roelymole committed Jan 7, 2025
1 parent 28e6e67 commit 83dfc89
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ public static void onHudRender(GuiGraphics graphics, DeltaTracker delta) {
if (body != null && !body.value().atmosphere().breathable()) {
Container inv = mc.player.galacticraft$getOxygenTanks();
final int y = 4;
for (int i = 0; i < inv.getContainerSize(); i++) {
Storage<FluidVariant> storage = ContainerItemContext.withConstant(inv.getItem(i)).find(FluidStorage.ITEM);
int x = mc.getWindow().getGuiScaledWidth() - ((Constant.TextureCoordinate.OVERLAY_WIDTH + y) * (i + 1));
final int n = inv.getContainerSize();
for (int i = n; i > 0; i--) {
Storage<FluidVariant> storage = ContainerItemContext.withConstant(inv.getItem(n - i)).find(FluidStorage.ITEM);
int x = mc.getWindow().getGuiScaledWidth() - ((Constant.TextureCoordinate.OVERLAY_WIDTH + y) * i);

int outline = 0x99FFFFFF;

Expand Down

0 comments on commit 83dfc89

Please sign in to comment.