diff --git a/src/main/java/appeng/items/tools/ToolNetworkTool.java b/src/main/java/appeng/items/tools/ToolNetworkTool.java index 9eca7440ea3..647469561d6 100644 --- a/src/main/java/appeng/items/tools/ToolNetworkTool.java +++ b/src/main/java/appeng/items/tools/ToolNetworkTool.java @@ -192,7 +192,11 @@ public boolean serverSideToolLogic( final ItemStack is, final EntityPlayer p, fi } else { - b.onBlockActivated( w, x, y, z, p, side, hitX, hitY, hitZ ); + if( b != null ) + if( !ForgeEventFactory.onPlayerInteract( p, + b.isAir( w, x, y, z ) ? PlayerInteractEvent.Action.RIGHT_CLICK_AIR : PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK, + x, y, z, side, w ).isCanceled() ) + b.onBlockActivated( w, x, y, z, p, side, hitX, hitY, hitZ ); } } else