From f040f882e50697bce789fa71f287cf1fa7ee5d60 Mon Sep 17 00:00:00 2001 From: TheMode Date: Sat, 19 Jun 2021 21:04:02 +0200 Subject: [PATCH] remove redundant allocation --- src/main/java/net/minestom/server/instance/block/Block.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minestom/server/instance/block/Block.java b/src/main/java/net/minestom/server/instance/block/Block.java index a170226c4..00e650626 100644 --- a/src/main/java/net/minestom/server/instance/block/Block.java +++ b/src/main/java/net/minestom/server/instance/block/Block.java @@ -68,7 +68,7 @@ public interface Block extends ProtocolObject, TagReadable, BlockConstants { @Override default @NotNull NamespaceID namespace() { - return NamespaceID.from(registry().namespace()); + return registry().namespace(); } @Override