mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-30 21:17:53 +01:00
Expand block properties error
This commit is contained in:
parent
5ddd97cee2
commit
748b24b8ef
@ -173,7 +173,7 @@ final class BlockImpl implements Block {
|
||||
private Block compute(Map<String, String> properties) {
|
||||
Block block = propertyEntry.get(properties);
|
||||
if (block == null)
|
||||
throw new IllegalArgumentException("Invalid properties: " + properties);
|
||||
throw new IllegalArgumentException("Invalid properties: " + properties + " for block " + this);
|
||||
return nbt == null && handler == null ? block :
|
||||
new BlockImpl(block.registry(), propertyEntry, block.properties(), nbt, handler);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user