mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 18:57:32 +00:00
Allow Negatives
This commit is contained in:
1 parent
251c7b109f
commit
953a706846
1 file changed
+3
@@ -63,6 +63,9 @@ public class GuiNpcTextField extends GuiTextField {
|
||||
if (integersOnly && getText().isEmpty() && c == '-')
|
||||
return true;
|
||||
|
||||
if ((floatsOnly || doublesOnly) && getText().isEmpty() && c == '-')
|
||||
return true;
|
||||
|
||||
for (int j : allowedSpecialChars)
|
||||
if (j == i)
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user