mirror of
https://github.com/seppukudevelopment/seppuku
synced 2024-12-28 09:32:06 +00:00
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()) {
|
||||
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;
|
||||
if (this.name.getBoolean())
|
||||
|
Loading…
Reference in New Issue
Block a user