public void UpdateFluid(int x, int y, int z)
        {
            bool autofluid = _autoFluid;

            _autoFluid = false;

            int blocktype = _blocks[x, y, z];

            if (blocktype == BlockInfo.Water.ID || blocktype == BlockInfo.StationaryWater.ID)
            {
                _fluidManager.UpdateWater(x, y, z);
                _dirty = true;
            }
            else if (blocktype == BlockInfo.Lava.ID || blocktype == BlockInfo.StationaryLava.ID)
            {
                _fluidManager.UpdateLava(x, y, z);
                _dirty = true;
            }

            _autoFluid = autofluid;
        }
Esempio n. 2
0
        public void UpdateFluid(int x, int y, int z)
        {
            bool autofluid = _autoFluid;

            _autoFluid = false;

            int blocktype = _blocks[x, y, z];

            if (blocktype == BlockType.WATER || blocktype == BlockType.STATIONARY_WATER)
            {
                _fluidManager.UpdateWater(x, y, z);
                _dirty = true;
            }
            else if (blocktype == BlockType.LAVA || blocktype == BlockType.STATIONARY_LAVA)
            {
                _fluidManager.UpdateLava(x, y, z);
                _dirty = true;
            }

            _autoFluid = autofluid;
        }