Add creative check to wallhack health

This commit is contained in:
noil 2019-11-06 21:29:41 -05:00
parent 35137ce34a
commit de7b2a22a1
1 changed files with 5 additions and 0 deletions

View File

@ -167,6 +167,11 @@ public final class WallHackModule extends Module {
else
heartsFormatted = (Math.floor(hearts) == hearts ? (int) hearts : String.format("%.1f", hearts)) + "";
if (e instanceof EntityPlayer) {
if (((EntityPlayer) e).isCreative())
heartsFormatted = ChatFormatting.YELLOW + "*";
}
float startX = -mc.fontRenderer.getStringWidth(heartsFormatted) / 2.0f;
if (this.name.getBoolean())
startX = -(mc.fontRenderer.getStringWidth(name) / 2.0f) - 2.0f - mc.fontRenderer.getStringWidth(heartsFormatted);