diff --git a/src/main/java/net/minestom/server/instance/block/BlockRegistry.java b/src/main/java/net/minestom/server/instance/block/BlockRegistry.java index 18f41e813..5d8a87fe6 100644 --- a/src/main/java/net/minestom/server/instance/block/BlockRegistry.java +++ b/src/main/java/net/minestom/server/instance/block/BlockRegistry.java @@ -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(); diff --git a/src/main/java/net/minestom/server/registry/Registry.java b/src/main/java/net/minestom/server/registry/Registry.java index cf128183b..7853de15b 100644 --- a/src/main/java/net/minestom/server/registry/Registry.java +++ b/src/main/java/net/minestom/server/registry/Registry.java @@ -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");