forked from MagicBane/Server
Proper parsing of power grants
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user