forked from MagicBane/Server
Parsing grants
This commit is contained in:
@@ -279,6 +279,8 @@ public class ItemTemplate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
JSONArray powerGrants = (JSONArray) jsonObject.get("item_power_grant");
|
JSONArray powerGrants = (JSONArray) jsonObject.get("item_power_grant");
|
||||||
|
|
||||||
|
if (powerGrants.isEmpty() == false)
|
||||||
for (Object o : powerGrants) {
|
for (Object o : powerGrants) {
|
||||||
JSONObject powerGrantEntry = (JSONObject) o;
|
JSONObject powerGrantEntry = (JSONObject) o;
|
||||||
String power_type = (String) powerGrantEntry.get("power_type");
|
String power_type = (String) powerGrantEntry.get("power_type");
|
||||||
|
|||||||
Reference in New Issue
Block a user