mirror of
https://github.com/HibiscusMC/HMCCosmetics.git
synced 2025-12-31 12:56:39 +00:00
material can now be lowercase + reverse previous commit
This commit is contained in:
@@ -23,8 +23,6 @@ public class CosmeticBalloonType extends Cosmetic {
|
||||
String modelId = config.node("model").getString();
|
||||
|
||||
this.modelName = modelId;
|
||||
|
||||
setDyable(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -38,7 +38,7 @@ public class ItemHooks {
|
||||
|
||||
public static ItemStack getItem(String raw) {
|
||||
if (!raw.contains(":")) {
|
||||
Material mat = Material.getMaterial(raw);
|
||||
Material mat = Material.getMaterial(raw.toUpperCase());
|
||||
if (mat == null) return null;
|
||||
return new ItemStack(mat);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user