mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 22:56:45 +01:00
Force lowercase
This commit is contained in:
parent
f1b8510708
commit
93894aca96
@ -41,6 +41,7 @@ public final class BlockUtil {
|
|||||||
if (id.length() == 1 && id.charAt(0) == '*') {
|
if (id.length() == 1 && id.charAt(0) == '*') {
|
||||||
return FuzzyBlockState.builder().type(BlockTypes.AIR).build();
|
return FuzzyBlockState.builder().type(BlockTypes.AIR).build();
|
||||||
}
|
}
|
||||||
|
id = id.toLowerCase();
|
||||||
BlockType type = BlockType.REGISTRY.get(id);
|
BlockType type = BlockType.REGISTRY.get(id);
|
||||||
if (type != null) {
|
if (type != null) {
|
||||||
return type.getDefaultState();
|
return type.getDefaultState();
|
||||||
|
Loading…
Reference in New Issue
Block a user