Removed the ability to use an NPC wand on a scripted block

This commit is contained in:
Goodbird committed 2024-01-22 22:41:18 +03:00
1 parent 7e425fd781
commit a4bfc9d92e
1 file changed
+1 -1
@@ -58,7 +58,7 @@ public class BlockScripted extends BlockContainer {
if (world.isRemote)
return true;
ItemStack currentItem = player.inventory.getCurrentItem();
if (currentItem != null && (currentItem.getItem() == CustomItems.wand || currentItem.getItem() == CustomItems.scripter)) {
if (currentItem != null && (currentItem.getItem() == CustomItems.scripter)) {
NoppesUtilServer.sendOpenGui(player, EnumGuiType.ScriptBlock, null, x, y, z);
return true;
}