diff --git a/src/main/java/eu/crushedpixel/replaymod/gui/elements/GuiTextArea.java b/src/main/java/eu/crushedpixel/replaymod/gui/elements/GuiTextArea.java index e4d44756..fc2ed420 100644 --- a/src/main/java/eu/crushedpixel/replaymod/gui/elements/GuiTextArea.java +++ b/src/main/java/eu/crushedpixel/replaymod/gui/elements/GuiTextArea.java @@ -231,7 +231,7 @@ public class GuiTextArea extends Gui implements GuiElement { totalCharCount += line.length(); } - if(totalCharCount-(getSelectedText().length()) >= maxCharCount) { + if(maxCharCount > 0 && totalCharCount-(getSelectedText().length()) >= maxCharCount) { return; }