mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-06 16:37:38 +01:00
Update to latest block file
This commit is contained in:
parent
a255abf0dd
commit
eeb8f3fd65
@ -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();
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user