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