private void Net_MassWireOperation(object sender, MassWireOperationEventArgs e)
        {
            if (this.isDisposed || !this.hooksEnabled || e.Handled)
            {
                return;
            }

            e.Handled = this.UserInteractionHandler.HandleMassWireOperation(e.Player, e);
        }
        public bool HandleMassWireOperation(TSPlayer player, MassWireOperationEventArgs e)
        {
            if (this.IsDisposed)
            {
                return(false);
            }

            var wireLocations = TShock.Utils.GetMassWireOperationRange(e.StartLocation.ToXnaPoint(), e.EndLocation.ToXnaPoint(), e.Player.TPlayer.direction == 1);

            foreach (Point wireLocation in wireLocations)
            {
                if (this.HandleWirePlace(player, new DPoint(wireLocation.X, wireLocation.Y)))
                {
                    return(true);
                }
            }

            return(false);
        }