mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 02:42:18 +00:00
Implemented dialog and text colors.
This commit is contained in:
1 parent
4fe61a904f
commit
ff8fc68e88
6 files changed
+132
-47
No files matched your search
@@ -43,6 +43,10 @@ public class GuiNpcTextField extends GuiTextField{
|
||||
private boolean charAllowed(char c, int i){
|
||||
if(!integersOnly || Character.isDigit(c))
|
||||
return true;
|
||||
|
||||
if(integersOnly && getText().isEmpty() && c == '-')
|
||||
return true;
|
||||
|
||||
for(int j : allowedSpecialChars)
|
||||
if(j == i)
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user