Exemple #1
0
        private void Net_ObjectPlacement(object sender, ObjectPlacementEventArgs e)
        {
            if (this.isDisposed || !this.hooksEnabled || e.Handled)
            {
                return;
            }

            e.Handled = this.UserInteractionHandler.HandleObjectPlacement(e.Player, e.Location, (int)e.BlockType, e.ObjectStyle, e.Alternative, e.Random, e.Direction);
        }
        private void Net_ObjectPlacement(object sender, ObjectPlacementEventArgs e)
        {
            if (this.isDisposed || !this.hooksEnabled || e.Handled)
            {
                return;
            }

            if (this.UserInteractionHandler.HandleObjectPlacement(e.Player, e.BlockType, e.Location, e.ObjectStyle))
            {
                e.Handled = true;
                return;
            }

            e.Handled = this.WorldMetadataHandler.HandleObjectPlacement(e.Player, e.BlockType, e.Location, e.ObjectStyle);
        }