Merge pull request #113 from Goodbird-git/scripted-blocks

Removed the ability to use an NPC wand on a scripted block
This commit is contained in:
Kam authored and GitHub committed 2024-01-22 21:53:22 -05:00
commit 01d9a3d771
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;
}