Reproduction:
- Create 2 artillery wagons (minimal save file included).
- Fill the first wagon with a bunch of artillery shells.
- Run this code:
Code: Select all
/c local a = game.surfaces.nauvis.find_entities_filtered{name="artillery-wagon"} local inv_a = a[1].get_inventory(defines.inventory.cargo_wagon) local inv_b = a[2].get_inventory(defines.inventory.cargo_wagon) inv_b[1].transfer_stack(inv_a[1])
- Only 1 shell was transferred to the second wagon, where I would expect the whole stack to be transferred.