mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2026-02-19 18:33:00 +01:00
fix other places where locale might matter
This commit is contained in:
@@ -30,6 +30,7 @@ import java.lang.reflect.Method;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.function.Predicate;
|
||||
|
||||
import static java.util.Objects.requireNonNull;
|
||||
@@ -111,12 +112,12 @@ public final class ItemUtils {
|
||||
|
||||
// try to match to Material ENUM
|
||||
if (material == null) {
|
||||
material = Material.getMaterial(materialName.toUpperCase());
|
||||
material = Material.getMaterial(materialName.toUpperCase(Locale.ENGLISH));
|
||||
}
|
||||
|
||||
// try to match to Material ENUM with legacy name
|
||||
if (material == null) {
|
||||
material = Material.getMaterial(materialName.toUpperCase(), true);
|
||||
material = Material.getMaterial(materialName.toUpperCase(Locale.ENGLISH), true);
|
||||
}
|
||||
return material;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user