Skip to content

Commit 6797b15

Browse files
committed
Action list only shows the first line of the Comment action.
1 parent a7f57f9 commit 6797b15

File tree

1 file changed

+3
-0
lines changed
  • adventure-editor/src/main/java/com/bladecoder/engineeditor/ui

1 file changed

+3
-0
lines changed

adventure-editor/src/main/java/com/bladecoder/engineeditor/ui/ActionList.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,9 @@ protected String getCellTitle(Action a) {
546546

547547
if(comment == null)
548548
comment = "COMMENT";
549+
else if(comment.indexOf('\n') != -1) {
550+
comment = comment.substring(0, comment.indexOf('\n'));
551+
}
549552

550553
return "[YELLOW]" + comment + "[]";
551554
}

0 commit comments

Comments
 (0)