mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 23:39:50 +00:00
Can now click empty lines in Script Editor
(accounted for empty trailing lines)
This commit is contained in:
1 parent
31ea784998
commit
c062c1340b
2 files changed
+9
-3
No files matched your search
@@ -57,8 +57,8 @@ public class JavaTextContainer extends TextContainer {
|
||||
lineHeight = ClientProxy.Font.height();
|
||||
if (lineHeight == 0)
|
||||
lineHeight = 12;
|
||||
String[] split = text.split("\n");
|
||||
|
||||
|
||||
String[] split = text.split("\\n", -1); // -1 preserves empty lines ""
|
||||
int totalChars = 0;
|
||||
for (String l : split) {
|
||||
StringBuilder line = new StringBuilder();
|
||||
|
||||
Reference in new issue
Block a user