Proper parsing of power grants

This commit is contained in:
2024-04-01 16:20:03 -04:00
parent db91b606f6
commit 75f11deee1
+3 -2
View File
@@ -354,8 +354,9 @@ public class ItemTemplate {
if (powerGrantsArray.isEmpty() == false) {
for (Object grantEntry : powerGrantsArray) {
JSONObject powerGrant = (JSONObject) grantEntry;
for (Object grantArrayEntry : powerGrantsArray) {
JSONObject powerGrantEntry = (JSONObject) grantArrayEntry;
JSONObject powerGrant = (JSONObject) powerGrantEntry.get("granted_powers");
for (Object key : powerGrant.keySet()) {
String powerString = (String) key;