Machines with fixed_recipe should keep their inventory when fast_replaced by the same recipe
Posted: Wed Jun 03, 2020 4:03 am
Steps to reproduce:
1. Create some assembling machines with identical fixed_recipe.
2. Build an assembling machine 1 and power it.
3. Insert 3 iron plates and let it craft an iron gear wheel.
4. Build an assembling machine 2 on top if it.
Actual result:
All iron plates and iron gear wheels are returned to player's inventory.
Expected result:
All iron plates and iron gear wheels stay in the assembling machine 2.
Also, progress should be kept instead of being reset.
1. Create some assembling machines with identical fixed_recipe.
Code: Select all
data.raw["assembling-machine"]["assembling-machine-1"].fixed_recipe = "iron-gear-wheel"
data.raw["assembling-machine"]["assembling-machine-2"].fixed_recipe = "iron-gear-wheel"
data.raw["assembling-machine"]["assembling-machine-3"].fixed_recipe = "iron-gear-wheel"
3. Insert 3 iron plates and let it craft an iron gear wheel.
4. Build an assembling machine 2 on top if it.
Actual result:
All iron plates and iron gear wheels are returned to player's inventory.
Expected result:
All iron plates and iron gear wheels stay in the assembling machine 2.
Also, progress should be kept instead of being reset.