mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 23:29:41 +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
@@ -28,7 +28,7 @@ public class SubGuiNpcProjectiles extends SubGuiInterface implements ITextfieldL
|
||||
{
|
||||
super.initGui();
|
||||
addLabel(new GuiNpcLabel(1,"enchantment.arrowDamage", guiLeft + 5, guiTop + 15));
|
||||
addTextField(new GuiNpcTextField(1,this, fontRendererObj, guiLeft + 45, guiTop + 10, 50, 18, stats.pDamage+""));
|
||||
addTextField(new GuiNpcTextField(1,this, fontRendererObj, guiLeft + 45, guiTop + 10, 50, 18, String.format("%.0f", stats.pDamage) +""));
|
||||
getTextField(1).setFloatsOnly();
|
||||
getTextField(1).setMinMaxDefaultFloat(0, Float.MAX_VALUE, 5);
|
||||
addLabel(new GuiNpcLabel(2,"enchantment.arrowKnockback", guiLeft + 110, guiTop + 15));
|
||||
|
||||
Reference in new issue
Block a user