mirror of https://github.com/Minestom/Minestom.git
Temporarily fix block placement
This commit is contained in:
parent
b49ccadadc
commit
f2300714eb
|
@ -17,6 +17,7 @@ import org.jetbrains.annotations.NotNull;
|
|||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* AUTOGENERATED
|
||||
|
@ -85,17 +86,17 @@ public final class Registries {
|
|||
/**
|
||||
* Returns the corresponding Block matching the given id. Returns 'AIR' if none match.
|
||||
*/
|
||||
@NotNull
|
||||
public static Block getBlock(String id) {
|
||||
return getBlock(NamespaceID.from(id));
|
||||
@Deprecated
|
||||
public static @NotNull Block getBlock(String id) {
|
||||
return Objects.requireNonNullElse(Block.fromNamespaceId(id), Block.AIR);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the corresponding Block matching the given id. Returns 'AIR' if none match.
|
||||
*/
|
||||
@NotNull
|
||||
public static Block getBlock(NamespaceID id) {
|
||||
return blocks.getOrDefault(id, Block.AIR);
|
||||
@Deprecated
|
||||
public static @NotNull Block getBlock(NamespaceID id) {
|
||||
return Objects.requireNonNullElse(Block.fromNamespaceId(id), Block.AIR);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue