forked from RepoMirrors/seppuku
Update wallhack text for *DEAD* living entity
This commit is contained in:
parent
e6bf154064
commit
35137ce34a
|
@ -161,7 +161,11 @@ public final class WallHackModule extends Module {
|
||||||
|
|
||||||
if (this.hearts.getBoolean()) {
|
if (this.hearts.getBoolean()) {
|
||||||
final float hearts = entityLiving.getHealth() / 2.0f;
|
final float hearts = entityLiving.getHealth() / 2.0f;
|
||||||
heartsFormatted = (Math.floor(hearts) == hearts ? (int) hearts : String.format("%.1f", hearts)) + "";
|
|
||||||
|
if (hearts <= 0)
|
||||||
|
heartsFormatted = "*DEAD*";
|
||||||
|
else
|
||||||
|
heartsFormatted = (Math.floor(hearts) == hearts ? (int) hearts : String.format("%.1f", hearts)) + "";
|
||||||
|
|
||||||
float startX = -mc.fontRenderer.getStringWidth(heartsFormatted) / 2.0f;
|
float startX = -mc.fontRenderer.getStringWidth(heartsFormatted) / 2.0f;
|
||||||
if (this.name.getBoolean())
|
if (this.name.getBoolean())
|
||||||
|
|
Loading…
Reference in New Issue