mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-06 04:46:40 +00:00
Fix handling of empty strings passed to Block/ItemType
This commit is contained in:
@ -236,6 +236,10 @@ public enum BlockType {
|
||||
*/
|
||||
public static BlockType lookup(String name, boolean fuzzy) {
|
||||
String testName = name.replace(" ", "").toLowerCase();
|
||||
|
||||
if (testName.length() == 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
BlockType type = lookup.get(testName);
|
||||
|
||||
|
Reference in New Issue
Block a user