From 358c9a8fbbdc8ccb89fcf657f980debcfc09fb47 Mon Sep 17 00:00:00 2001 From: xGinko Date: Tue, 13 Aug 2024 01:28:54 +0200 Subject: [PATCH] forgot to use util method --- .../xginko/aef/modules/illegals/items/nbt/CommandItems.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/illegals/items/nbt/CommandItems.java b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/illegals/items/nbt/CommandItems.java index e2a4f56e..c99c3d72 100755 --- a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/illegals/items/nbt/CommandItems.java +++ b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/illegals/items/nbt/CommandItems.java @@ -1,9 +1,9 @@ package me.xginko.aef.modules.illegals.items.nbt; -import de.tr7zw.changeme.nbtapi.NBT; import me.xginko.aef.enums.AEFPermission; import me.xginko.aef.enums.ItemLegality; import me.xginko.aef.modules.illegals.items.IllegalItemModule; +import me.xginko.aef.utils.ItemUtil; import me.xginko.aef.utils.MaterialUtil; import org.bukkit.inventory.ItemStack; import org.checkerframework.checker.nullness.qual.Nullable; @@ -38,7 +38,7 @@ public boolean shouldEnable() { return ItemLegality.LEGAL; } - if (NBT.readNbt(itemStack).toString().contains("run_command")) { + if (ItemUtil.getNBTString(itemStack).contains("run_command")) { return ItemLegality.ILLEGAL; }