Update to latest block file

This commit is contained in:
TheMode 2021-06-22 22:38:36 +02:00
parent a255abf0dd
commit eeb8f3fd65
2 changed files with 1 additions and 4 deletions

View File

@ -52,9 +52,6 @@ class BlockRegistry {
final String blockNamespace = entry.getKey();
final JsonObject blockObject = entry.getValue().getAsJsonObject();
final JsonObject stateObject = blockObject.remove("states").getAsJsonObject();
blockObject.remove("properties");
blockObject.addProperty("namespace", blockNamespace);
retrieveState(blockNamespace, blockObject, stateObject);
final int defaultState = blockObject.get("defaultStateId").getAsInt();

View File

@ -53,7 +53,7 @@ public class Registry {
private BlockEntry(JsonObject main, JsonObject override) {
super(main, override);
this.namespace = NamespaceID.from(getString("namespace"));
this.namespace = NamespaceID.from(getString("namespaceId"));
this.id = getInt("id");
this.stateId = getInt("stateId");
this.destroySpeed = getDouble("hardness");