mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 20:09:49 +00:00
1.4
Fix Decimal Display
This commit is contained in:
1 parent
e10aa09728
commit
f508fbed1a
8 files changed
+17
-49
No files matched your search
@@ -27,7 +27,7 @@ public class SubGuiNpcMeleeProperties extends SubGuiInterface implements ITextfi
|
||||
{
|
||||
super.initGui();
|
||||
addLabel(new GuiNpcLabel(1,"stats.meleestrength", guiLeft + 5, guiTop + 15));
|
||||
addTextField(new GuiNpcTextField(1,this, fontRendererObj, guiLeft + 85, guiTop + 10, 50, 18, stats.getAttackStrength()+""));
|
||||
addTextField(new GuiNpcTextField(1,this, fontRendererObj, guiLeft + 85, guiTop + 10, 50, 18, String.format("%.0f", stats.getAttackStrength()) + ""));
|
||||
getTextField(1).floatsOnly = true;
|
||||
getTextField(1).setMinMaxDefaultFloat(0,Float.MAX_VALUE,5);
|
||||
addLabel(new GuiNpcLabel(2,"stats.meleerange", guiLeft + 5, guiTop + 45));
|
||||
|
||||
Reference in new issue
Block a user