diff --git a/src/main/java/net/coreprotect/database/logger/ContainerLogger.java b/src/main/java/net/coreprotect/database/logger/ContainerLogger.java index d9e5cff0..8e09e98d 100644 --- a/src/main/java/net/coreprotect/database/logger/ContainerLogger.java +++ b/src/main/java/net/coreprotect/database/logger/ContainerLogger.java @@ -167,7 +167,7 @@ protected static void logTransaction(PreparedStatement preparedStmt, int batchCo if (item != null) { if (item.getAmount() > 0 && !Util.isAir(item.getType())) { // Object[] metadata = new Object[] { slot, item.getItemMeta() }; - List>> metadata = ItemMetaHandler.seralize(item, type, faceData, slot); + List>> metadata = ItemMetaHandler.serialize(item, type, faceData, slot); if (metadata.size() == 0) { metadata = null; } diff --git a/src/main/java/net/coreprotect/database/logger/ItemLogger.java b/src/main/java/net/coreprotect/database/logger/ItemLogger.java index 8c68f679..4c32003d 100644 --- a/src/main/java/net/coreprotect/database/logger/ItemLogger.java +++ b/src/main/java/net/coreprotect/database/logger/ItemLogger.java @@ -120,7 +120,7 @@ protected static void logTransaction(PreparedStatement preparedStmt, int batchCo for (ItemStack item : items) { if (item != null && item.getAmount() > 0 && !Util.isAir(item.getType())) { // Object[] metadata = new Object[] { slot, item.getItemMeta() }; - List>> data = ItemMetaHandler.seralize(item, null, null, 0); + List>> data = ItemMetaHandler.serialize(item, null, null, 0); if (data.size() == 0) { data = null; } diff --git a/src/main/java/net/coreprotect/listener/entity/EntityDeathListener.java b/src/main/java/net/coreprotect/listener/entity/EntityDeathListener.java index 524f165c..8a83f060 100644 --- a/src/main/java/net/coreprotect/listener/entity/EntityDeathListener.java +++ b/src/main/java/net/coreprotect/listener/entity/EntityDeathListener.java @@ -377,7 +377,7 @@ else if (entity instanceof AbstractVillager) { List ingredients = new ArrayList<>(); List itemMap = new ArrayList<>(); ItemStack item = merchantRecipe.getResult().clone(); - List>> metadata = ItemMetaHandler.seralize(item, item.getType(), null, 0); + List>> metadata = ItemMetaHandler.serialize(item, item.getType(), null, 0); item.setItemMeta(null); itemMap.add(item.serialize()); itemMap.add(metadata); @@ -389,7 +389,7 @@ else if (entity instanceof AbstractVillager) { for (ItemStack ingredient : merchantRecipe.getIngredients()) { itemMap = new ArrayList<>(); item = ingredient.clone(); - metadata = ItemMetaHandler.seralize(item, item.getType(), null, 0); + metadata = ItemMetaHandler.serialize(item, item.getType(), null, 0); item.setItemMeta(null); itemMap.add(item.serialize()); itemMap.add(metadata); diff --git a/src/main/java/net/coreprotect/utility/Util.java b/src/main/java/net/coreprotect/utility/Util.java index 502b3265..e1707f2b 100755 --- a/src/main/java/net/coreprotect/utility/Util.java +++ b/src/main/java/net/coreprotect/utility/Util.java @@ -1415,7 +1415,7 @@ public static Map serializeItemStack(ItemStack itemStack, String Map itemMap = new HashMap<>(); if (itemStack != null && !itemStack.getType().equals(Material.AIR)) { ItemStack item = itemStack.clone(); - List>> metadata = ItemMetaHandler.seralize(item, null, faceData, slot); + List>> metadata = ItemMetaHandler.serialize(item, null, faceData, slot); item.setItemMeta(null); itemMap.put("0", item.serialize()); itemMap.put("1", metadata); diff --git a/src/main/java/net/coreprotect/utility/serialize/ItemMetaHandler.java b/src/main/java/net/coreprotect/utility/serialize/ItemMetaHandler.java index 34127c86..f3e6904f 100644 --- a/src/main/java/net/coreprotect/utility/serialize/ItemMetaHandler.java +++ b/src/main/java/net/coreprotect/utility/serialize/ItemMetaHandler.java @@ -115,7 +115,7 @@ public static List getEnchantments(ItemStack item, String displayName) { return result; } - public static List>> seralize(ItemStack item, Material type, String faceData, int slot) { + public static List>> serialize(ItemStack item, Material type, String faceData, int slot) { List>> metadata = new ArrayList<>(); List> list = new ArrayList<>(); List modifiers = new ArrayList<>();