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 {
languages.add(lang.getAsString());
List<String> equipment = new ArrayList<>();
if (json.get("equipment") != jsonNull)
for (JsonElement lang : json.get("equipment").getAsJsonArray())
languages.add(lang.getAsString());
for (JsonElement equip : json.get("equipment").getAsJsonArray())
equipment.add(equip.getAsString());
List<String> notes = new ArrayList<>();
if (json.get("languages") != jsonNull)
for (JsonElement lang : json.get("languages").getAsJsonArray())
languages.add(lang.getAsString());
if (json.get("notes") != jsonNull)
for (JsonElement note : json.get("notes").getAsJsonArray())
notes.add(note.getAsString());
List<String> spells = new ArrayList<>();
if (json.get("spell") != jsonNull)
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