예제 #1
0
        public override bool OnBlockInteractStart(IWorldAccessor world, IPlayer byPlayer, BlockSelection blockSel)
        {
            BlockEntitySpawner be = world.BlockAccessor.GetBlockEntity(blockSel.Position) as BlockEntitySpawner;

            if (be != null && byPlayer.WorldData.CurrentGameMode == EnumGameMode.Creative)
            {
                be.OnInteract(byPlayer);
                return(true);
            }

            return(false);
        }
예제 #2
0
        public override bool OnBlockInteractStart(IWorldAccessor world, IPlayer byPlayer, BlockSelection blockSel)
        {
            BlockEntitySpawner be = world.BlockAccessor.GetBlockEntity(blockSel.Position) as BlockEntitySpawner;

            if (be != null)
            {
                be.OnInteract(byPlayer);
                return(true);
            }

            return(false);
        }