Skip to content

Commit

Permalink
Merge pull request #103 from 0b0t-org/1.20.4
Browse files Browse the repository at this point in the history
change nbtContainers to nbtFurnaces
  • Loading branch information
bierdosenhalter authored Dec 8, 2024
2 parents 2c30433 + c120fb0 commit 39890b8
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;
import net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.enchantments.Enchantment;
Expand Down Expand Up @@ -231,7 +230,7 @@ private static boolean revertIllegalNBTData(@NotNull final ItemStack itemStack)
| revertIllegalDurability(itemStack)
| revertUnbreakableTag(itemStack)
| revertOverstackedItem(itemStack)
| revertNBTContainer(itemStack)
| revertnbtFurnaces(itemStack)
| removeConflictingEnchantments(itemStack)
| removeAttributes(itemStack)
| removeCustomPotionEffects(itemStack)
Expand Down Expand Up @@ -411,8 +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 revertNBTContainer(@NotNull final ItemStack itemStack) {
if (!AntiIllegals.config().getBoolean("nbtContainers"))
private static boolean revertnbtFurnaces(@NotNull final ItemStack itemStack) {
if (!AntiIllegals.config().getBoolean("nbtFurnaces"))
return false;

if (!MaterialHelper.isNonShulkerContainer(itemStack))
Expand Down

0 comments on commit 39890b8

Please # to comment.