Skip to content

Commit

Permalink
forgot to use util method
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Aug 12, 2024
1 parent c53700f commit 358c9a8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 358c9a8

Please sign in to comment.