コード例 #1
0
ファイル: BlockForge.cs プロジェクト: curquhart/vssurvivalmod
        public override bool OnBlockInteractStart(IWorldAccessor world, IPlayer byPlayer, BlockSelection blockSel)
        {
            BlockEntityForge bea = world.BlockAccessor.GetBlockEntity(blockSel.Position) as BlockEntityForge;

            if (bea != null)
            {
                return(bea.OnPlayerInteract(world, byPlayer, blockSel));
            }

            return(base.OnBlockInteractStart(world, byPlayer, blockSel));
        }