diff --git a/common/src/main/java/me/lojosho/hibiscuscommons/items/ItemBuilder.java b/common/src/main/java/me/lojosho/hibiscuscommons/items/ItemBuilder.java index 51d5463..d15ce06 100644 --- a/common/src/main/java/me/lojosho/hibiscuscommons/items/ItemBuilder.java +++ b/common/src/main/java/me/lojosho/hibiscuscommons/items/ItemBuilder.java @@ -34,7 +34,7 @@ public class ItemBuilder { private ArrayList lore = new ArrayList<>(); private final ArrayList itemFlags = new ArrayList<>(); private final HashMap enchantments = new HashMap<>(); - private final HashMap nbtData = new HashMap<>(); + private final HashMap nbtData = new HashMap<>(); @Getter private int amount = 1; @Getter @@ -90,7 +90,7 @@ public class ItemBuilder { } if (!meta.getPersistentDataContainer().isEmpty()) { for (NamespacedKey key : meta.getPersistentDataContainer().getKeys()) { - this.nbtData.put(key.getKey(), meta.getPersistentDataContainer().get(key, PersistentDataType.STRING)); + this.nbtData.put(key, meta.getPersistentDataContainer().get(key, PersistentDataType.STRING)); } } } @@ -363,8 +363,8 @@ public class ItemBuilder { } if (!nbtData.isEmpty()) { - for (String key : nbtData.keySet()) { - meta.getPersistentDataContainer().set(NamespacedKey.minecraft(key), PersistentDataType.STRING, nbtData.get(key)); + for (NamespacedKey key : nbtData.keySet()) { + meta.getPersistentDataContainer().set(key, PersistentDataType.STRING, nbtData.get(key)); } }