fix wrong json value being read...
This commit is contained in:
parent
00eb9ad753
commit
96130119af
@ -1,6 +1,7 @@
|
||||
Flan 1.3.1
|
||||
======================
|
||||
- Fix the nullpointer when creating claims
|
||||
- Fix personal groups not reading from file
|
||||
|
||||
Flan 1.3.0
|
||||
======================
|
||||
|
@ -289,7 +289,7 @@ public class PlayerClaimData {
|
||||
Flan.debug("Read following json data {} from file {}", obj, file.getName());
|
||||
this.claimBlocks = obj.get("ClaimBlocks").getAsInt();
|
||||
this.additionalClaimBlocks = obj.get("AdditionalBlocks").getAsInt();
|
||||
JsonObject defP = ConfigHandler.fromJson(obj, "defaultGroups");
|
||||
JsonObject defP = ConfigHandler.fromJson(obj, "DefaultGroups");
|
||||
defP.entrySet().forEach(e -> {
|
||||
Map<ClaimPermission, Boolean> perms = new HashMap<>();
|
||||
perms.forEach((p, b) -> this.editDefaultPerms(e.getKey(), p, b ? 1 : 0));
|
||||
|
Loading…
Reference in New Issue
Block a user