Skip to content

Commit 2a46726

Browse files
committed
refactor: Update GameRuleGenerator
Missed during last codegeneration.
1 parent 76af2ea commit 2a46726

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

DataGenerator/src/main/java/net/minestom/generators/GameRuleGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ public JsonElement generate() throws Exception {
1919
for (var gameRule : BuiltInRegistries.GAME_RULE) {
2020
var ruleJson = new JsonObject();
2121
ruleJson.addProperty("id", BuiltInRegistries.GAME_RULE.getId(gameRule));
22-
ruleJson.addProperty("category", gameRule.category().id().toShortString());
2322
ruleJson.addProperty("default", String.valueOf(gameRule.defaultValue()));
23+
ruleJson.addProperty("type", gameRule.gameRuleType().getSerializedName());
2424
markers.add(gameRule.getIdentifier().toShortString(), ruleJson);
2525
}
2626
return markers;

0 commit comments

Comments
 (0)