mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 22:19:40 +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
@@ -126,12 +126,12 @@ public class GuiNpcTextField extends GuiTextField{
|
||||
setText(max+"");
|
||||
}
|
||||
else if(doublesOnly && !floatsOnly){
|
||||
if(isEmpty() || !isDouble())
|
||||
setText(defDouble +"");
|
||||
else if(getDouble() < minDouble)
|
||||
setText(minDouble +"");
|
||||
else if(getDouble() > maxDouble)
|
||||
setText(maxDouble +"");
|
||||
if (isEmpty() || !isDouble())
|
||||
setText(defDouble + "");
|
||||
else if (getDouble() < minDouble)
|
||||
setText(minDouble + "");
|
||||
else if (getDouble() > maxDouble)
|
||||
setText(maxDouble + "");
|
||||
}
|
||||
else if(floatsOnly){
|
||||
if(isEmpty() || !isFloat())
|
||||
|
||||
Reference in new issue
Block a user