Skip to content

Commit

Permalink
Texture updates
Browse files Browse the repository at this point in the history
  • Loading branch information
weirtz committed Aug 28, 2022
1 parent a5eb891 commit dbac493
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public class ManaHudOverlay {
int i6 = Math.min(instance.player.getAirSupply(), l5);
boolean mustShiftUp = instance.player.isEyeInFluid(FluidTags.WATER) || i6 < l5;
int yOffset = mustShiftUp ? 10 : 0;
int x = width / 2 + 97;
int y = height - 2 - yOffset;
int x = width / 2 + 96;
int y = height - 3 - yOffset;

RenderSystem.setShader(GameRenderer::getPositionTexShader);
RenderSystem.setShaderColor(1.0F, 1.0F, 1.0F, 1.0F);
Expand All @@ -43,8 +43,8 @@ public class ManaHudOverlay {
RenderSystem.setShaderTexture(0, FULL_MANA);
for (int i = 0; i < 10; i++) {
if (ClientManaStatData.getPlayerManaStat() > i) {
GuiComponent.blit(poseStack, x - 94 + (i * 8), y - 54, 0, 0, 22, 22,
22, 22);
GuiComponent.blit(poseStack, x - 94 + (i * 8), y - 54, 0, 0, 21, 21,
21, 21);
} else {
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ credits="Thanks for this example mod goes to Java" #optional
authors="Seabreyh Development Group - https://github.com/Seabreyh" #optional
# The description text for the mod (multi line!) (#mandatory)
description='''
A simple mod adding adding some magic items and mana, inspired by Terraria.
A mod that introduces magic into Minecraft in amazing ways.
'''
# A dependency - use the . to indicate dependency for a specific modid. Dependencies are optional.
[[dependencies.mana]] #optional
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/resources/assets/mana/textures/gui/mana_star_full.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dbac493

Please sign in to comment.