mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-25 18:47:40 +01:00
Fix override registry
This commit is contained in:
parent
d1b654e843
commit
9bca6ee0e3
@ -72,7 +72,7 @@ record BlockImpl(@NotNull Registry.BlockEntry registry,
|
|||||||
propertiesArray[keyIndex] = valueIndex;
|
propertiesArray[keyIndex] = valueIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
var mainProperties = Registry.Properties.fromMap(new MergedMap<>(properties.asMap(), stateOverride));
|
var mainProperties = Registry.Properties.fromMap(new MergedMap<>(stateOverride, properties.asMap()));
|
||||||
final BlockImpl block = new BlockImpl(Registry.block(namespace, mainProperties),
|
final BlockImpl block = new BlockImpl(Registry.block(namespace, mainProperties),
|
||||||
propertiesArray, null, null);
|
propertiesArray, null, null);
|
||||||
BLOCK_STATE_MAP.set(block.stateId(), block);
|
BLOCK_STATE_MAP.set(block.stateId(), block);
|
||||||
|
Loading…
Reference in New Issue
Block a user