Commit db9d870c authored by Mathieu Féry (Mathius)'s avatar Mathieu Féry (Mathius)
Browse files

Patch process for DnDSheet

parent b3dc47f1
Pipeline #23355 failed with stages
in 2 minutes and 33 seconds
...@@ -1345,12 +1345,12 @@ public class DnDSheet implements Serializable { ...@@ -1345,12 +1345,12 @@ public class DnDSheet implements Serializable {
languages.add(lang.getAsString()); languages.add(lang.getAsString());
List<String> equipment = new ArrayList<>(); List<String> equipment = new ArrayList<>();
if (json.get("equipment") != jsonNull) if (json.get("equipment") != jsonNull)
for (JsonElement lang : json.get("equipment").getAsJsonArray()) for (JsonElement equip : json.get("equipment").getAsJsonArray())
languages.add(lang.getAsString()); equipment.add(equip.getAsString());
List<String> notes = new ArrayList<>(); List<String> notes = new ArrayList<>();
if (json.get("languages") != jsonNull) if (json.get("notes") != jsonNull)
for (JsonElement lang : json.get("languages").getAsJsonArray()) for (JsonElement note : json.get("notes").getAsJsonArray())
languages.add(lang.getAsString()); notes.add(note.getAsString());
List<String> spells = new ArrayList<>(); List<String> spells = new ArrayList<>();
if (json.get("spell") != jsonNull) if (json.get("spell") != jsonNull)
for (JsonElement spell : json.get("spell").getAsJsonArray()) for (JsonElement spell : json.get("spell").getAsJsonArray())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment