Skip to content

Commit

Permalink
Update SoulEntry.java
Browse files Browse the repository at this point in the history
backwards compatibility for already existing lore strings in the file
  • Loading branch information
Wembler23 committed Mar 5, 2024
1 parent f1f2d9a commit 4885fa6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/playmonumenta/libraryofsouls/SoulEntry.java
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,8 @@ public static SoulEntry fromJson(JsonObject obj, boolean loadHistory) throws Exc
Component comp = GSON_SERIALIZER.deserialize(loreElement.getAsString());
lore.add(comp);
}
} else if (elem != null && elem.isJsonPrimitive()) {
lore.add(Component.text(elem.getAsString()));
}

List<SoulHistoryEntry> history = new ArrayList<SoulHistoryEntry>();
Expand Down

0 comments on commit 4885fa6

Please sign in to comment.