mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-06 16:37:38 +01:00
Default to minecraft namespace
This commit is contained in:
parent
94ee21a02a
commit
3bdc842393
@ -23,6 +23,10 @@ class BlockRegistry {
|
|||||||
private static final Map<String, PropertyEntry> BLOCK_PROPERTY_MAP = new ConcurrentHashMap<>();
|
private static final Map<String, PropertyEntry> BLOCK_PROPERTY_MAP = new ConcurrentHashMap<>();
|
||||||
|
|
||||||
static @Nullable Block get(@NotNull String namespace) {
|
static @Nullable Block get(@NotNull String namespace) {
|
||||||
|
if (!namespace.contains(":")) {
|
||||||
|
// Default to minecraft namespace
|
||||||
|
namespace = "minecraft:" + namespace;
|
||||||
|
}
|
||||||
return NAMESPACE_MAP.get(namespace);
|
return NAMESPACE_MAP.get(namespace);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user