mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 22:47:49 +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) {
|
private Block compute(Map<String, String> properties) {
|
||||||
Block block = propertyEntry.get(properties);
|
Block block = propertyEntry.get(properties);
|
||||||
if (block == null)
|
if (block == null)
|
||||||
throw new IllegalArgumentException("Invalid properties: " + properties);
|
throw new IllegalArgumentException("Invalid properties: " + properties + " for block " + this);
|
||||||
return nbt == null && handler == null ? block :
|
return nbt == null && handler == null ? block :
|
||||||
new BlockImpl(block.registry(), propertyEntry, block.properties(), nbt, handler);
|
new BlockImpl(block.registry(), propertyEntry, block.properties(), nbt, handler);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user