Only limit character count in GuiTextArea if it's positive
This commit is contained in:
@@ -231,7 +231,7 @@ public class GuiTextArea extends Gui implements GuiElement {
|
|||||||
totalCharCount += line.length();
|
totalCharCount += line.length();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(totalCharCount-(getSelectedText().length()) >= maxCharCount) {
|
if(maxCharCount > 0 && totalCharCount-(getSelectedText().length()) >= maxCharCount) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user