Skip to content

Commit

Permalink
Minor clean-up of code hastily borrowed from Fabric.
Browse files Browse the repository at this point in the history
  • Loading branch information
gniftygnome committed Nov 10, 2022
1 parent d274404 commit 3928155
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public Identifier getConditionId() {
public void writeParameters(JsonObject object) {
JsonArray array = new JsonArray();

for (String modId : configBooleans) {
array.add(modId);
for (String fieldName : configBooleans) {
array.add(fieldName);
}

object.add("values", array);
Expand All @@ -46,7 +46,7 @@ protected static boolean configBooleanEnabled(JsonObject object, boolean and) {
return !and;
}
} else {
throw new JsonParseException("Invalid mod id entry: " + element);
throw new JsonParseException("Invalid config field entry: " + element);
}
}

Expand Down

0 comments on commit 3928155

Please sign in to comment.