Default to minecraft namespace

This commit is contained in:
TheMode 2021-06-20 20:33:39 +02:00
parent 94ee21a02a
commit 3bdc842393

View File

@ -23,6 +23,10 @@ class BlockRegistry {
private static final Map<String, PropertyEntry> BLOCK_PROPERTY_MAP = new ConcurrentHashMap<>();
static @Nullable Block get(@NotNull String namespace) {
if (!namespace.contains(":")) {
// Default to minecraft namespace
namespace = "minecraft:" + namespace;
}
return NAMESPACE_MAP.get(namespace);
}