9
0
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:
LoJoSho
2023-01-11 10:06:55 -06:00
parent 00dbd186c0
commit 4a623bca9d
2 changed files with 1 additions and 3 deletions

View File

@@ -23,8 +23,6 @@ public class CosmeticBalloonType extends Cosmetic {
String modelId = config.node("model").getString();
this.modelName = modelId;
setDyable(true);
}
@Override

View File

@@ -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);
}