mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-03 06:37:47 +01:00
Fixed an issue with armor trim material application
This commit is contained in:
parent
259707c0fc
commit
3cb01e5bc1
@ -42,7 +42,7 @@ public class TrimMaterialStat extends ChooseStat implements GemStoneStat {
|
||||
public void whenApplied(@NotNull ItemStackBuilder item, @NotNull StringData data) {
|
||||
if (!(item.getMeta() instanceof ArmorMeta)) return;
|
||||
|
||||
@Nullable TrimMaterial material = Registry.TRIM_MATERIAL.get(NamespacedKey.minecraft(data.toString().toLowerCase()));
|
||||
@Nullable TrimMaterial material = Registry.TRIM_MATERIAL.get(TrimPatternStat.fixNamespacedKey(data.toString().toLowerCase()));
|
||||
if (material == null) return;
|
||||
|
||||
final ArmorMeta meta = (ArmorMeta) item.getMeta();
|
||||
|
Loading…
Reference in New Issue
Block a user