mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-08 17:37:42 +01:00
Use getSafe
This commit is contained in:
parent
53dea325f9
commit
0bf275afb2
@ -170,7 +170,7 @@ public interface Block extends ProtocolObject, TagReadable, BlockConstants {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static @Nullable Block fromNamespaceId(@NotNull String namespaceID) {
|
static @Nullable Block fromNamespaceId(@NotNull String namespaceID) {
|
||||||
return BlockImpl.get(namespaceID);
|
return BlockImpl.getSafe(namespaceID);
|
||||||
}
|
}
|
||||||
|
|
||||||
static @Nullable Block fromNamespaceId(@NotNull NamespaceID namespaceID) {
|
static @Nullable Block fromNamespaceId(@NotNull NamespaceID namespaceID) {
|
||||||
|
Loading…
Reference in New Issue
Block a user