This keeps coming up on a pack I am putting together, I am not the best at finding these issues in these things. any help is appreciated.
https://paste.ee/p/SeEVH
This is what I have now, nothing shows on the screen and after using mana the game freezes.
public class ManaOverlay extends Overlay {
ResourceLocation manaBar = ResourceLocation.fromNamespaceAndPath(RSGArmoury.MOD_ID, "/textures/block/spawnable_arena_wall.png");
@Override
public void render(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) {
Mana mana = new Mana();
pGuiGraphics.blit(manaBar, 16, -16, 0, 0, mana.getMana(), 16, mana.getMana(), 16);
}
@Override
public boolean isPauseScreen() {
return false;
}
}
Recommended Posts