Fix override registry

This commit is contained in:
themode 2022-03-09 17:51:03 +01:00
parent d1b654e843
commit 9bca6ee0e3

View File

@ -72,7 +72,7 @@ record BlockImpl(@NotNull Registry.BlockEntry registry,
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),
propertiesArray, null, null);
BLOCK_STATE_MAP.set(block.stateId(), block);