From aaeaaa9cd652c4a5baf5330220196dcb208170dc Mon Sep 17 00:00:00 2001 From: osamah Date: Sat, 21 Dec 2024 22:09:33 +0300 Subject: [PATCH] fixed NBT storages --- pom.xml | 2 +- .../org/zeroBzeroT/antiillegals/helpers/RevertHelper.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 455f908..e3932b6 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ org.zeroBzeroT AntiIllegals - 1.1.3 + 1.1.4 jar ${project.artifactId} diff --git a/src/main/java/org/zeroBzeroT/antiillegals/helpers/RevertHelper.java b/src/main/java/org/zeroBzeroT/antiillegals/helpers/RevertHelper.java index 9483ff7..19a5b19 100644 --- a/src/main/java/org/zeroBzeroT/antiillegals/helpers/RevertHelper.java +++ b/src/main/java/org/zeroBzeroT/antiillegals/helpers/RevertHelper.java @@ -230,7 +230,7 @@ private static boolean revertIllegalNBTData(@NotNull final ItemStack itemStack) | revertIllegalDurability(itemStack) | revertUnbreakableTag(itemStack) | revertOverstackedItem(itemStack) - | revertnbtFurnaces(itemStack) + | revertNBTContainer(itemStack) | removeConflictingEnchantments(itemStack) | removeAttributes(itemStack) | removeCustomPotionEffects(itemStack) @@ -410,7 +410,8 @@ private static boolean deleteIllegalItem(@NotNull final ItemStack itemStack) { * @param itemStack the item to revert * @return whether the nbt tag was removed */ - private static boolean revertnbtFurnaces(@NotNull final ItemStack itemStack) { + private static boolean revertNBTContainer(@NotNull final ItemStack itemStack) { + // TODO rename the config option to nbtContainers if (!AntiIllegals.config().getBoolean("nbtFurnaces")) return false;