[2.0.72] Cloning boiler duplicates fluid inside
Posted: Wed Nov 05, 2025 11:51 am
Playing a mod with lots os cloning events, I have noticed that fluid storage was raising when it should not...
After some tests in my mod, I found that when a boiler is cloned, the water inside it is duplicated.
How to reproduce: use this console command
After some tests in my mod, I found that when a boiler is cloned, the water inside it is duplicated.
How to reproduce: use this console command
Code: Select all
/c local player = game.player local surface = player.surface local pos = player.position local boiler = surface.create_entity{name = "boiler", position = {pos.x + 2, pos.y}, force = player.force} if boiler and boiler.valid then boiler.fluidbox[1] = {name = "water", amount = 50, temperature = 15} boiler.fluidbox[2] = {name = "steam", amount = 50, temperature = 150} end local source_area = {{pos.x + 1.5, pos.y - 0.5}, {pos.x + 2.5, pos.y + 0.5}} local destination_area = {{pos.x + 14.5, pos.y - 0.5}, {pos.x + 15.5, pos.y + 0.5}} surface.clone_area{ source_area = source_area, destination_area = destination_area, clone_tiles = false, clone_entities = true, expand_map = true }