public void ResetWater(ByteArray blocks, NibbleArray data) { for (int i = 0; i < blocks.Length; i++) { if ((blocks[i] == BlockType.STATIONARY_WATER || blocks[i] == BlockType.WATER) && data[i] != 0) { blocks[i] = BlockType.AIR; data[i] = 0; } else if (blocks[i] == BlockType.WATER) { blocks[i] = BlockType.STATIONARY_WATER; } } }
public void ResetLava(ByteArray blocks, NibbleArray data) { for (int i = 0; i < blocks.Length; i++) { if ((blocks[i] == BlockType.STATIONARY_LAVA || blocks[i] == BlockType.LAVA) && data[i] != 0) { blocks[i] = BlockType.AIR; data[i] = 0; } else if (blocks[i] == BlockType.LAVA) { blocks[i] = BlockType.STATIONARY_LAVA; } } }
public void ResetLava(ByteArray blocks, NibbleArray data) { for (int i = 0; i < blocks.Length; i++) { if ((blocks[i] == BlockInfo.StationaryLava.ID || blocks[i] == BlockInfo.Lava.ID) && data[i] != 0) { blocks[i] = (byte)BlockInfo.Air.ID; data[i] = 0; } else if (blocks[i] == BlockInfo.Lava.ID) { blocks[i] = (byte)BlockInfo.StationaryWater.ID; } } }