Rewrite to use new RebornCore Power API. Texture fixes.

This commit is contained in:
Dragon2488 2016-07-21 22:22:56 +07:00
parent 6f54e3801f
commit b292fdd352
77 changed files with 1342 additions and 3008 deletions

View file

@ -42,9 +42,8 @@ public class GuiChargeBench extends GuiContainer
int j = 0;
j = chargebench.getEnergyScaled(12);
if (j > 0)
{
j = (int)(chargebench.getEnergy() * 12f / chargebench.getMaxPower());
if (j > 0) {
this.drawTexturedModalRect(k + 10, l + 32 + 12 - j, 176, 12 - j, 14, j + 2);
}
}