Skip to content

Commit 7214f5e

Browse files
committed
fix bug when saving world
1 parent 7054208 commit 7214f5e

File tree

1 file changed

+1
-1
lines changed
  • adventure-composer/src/main/java/com/bladecoder/engineeditor/utils

1 file changed

+1
-1
lines changed

adventure-composer/src/main/java/com/bladecoder/engineeditor/utils/I18NUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ private static void getUsedKeys(Element e, ArrayList<String> usedKeys) {
229229
NamedNodeMap attrs = e.getAttributes();
230230

231231
for(int i = 0; i < attrs.getLength(); i++) {
232-
if(attrs.item(i).getNodeValue().charAt(0) == BaseDocument.I18NPREFIX) {
232+
if(attrs.item(i).getNodeValue().length() > 0 && attrs.item(i).getNodeValue().charAt(0) == BaseDocument.I18NPREFIX) {
233233
usedKeys.add(attrs.item(i).getNodeValue().substring(1));
234234
}
235235
}

0 commit comments

Comments
 (0)