Mouseover upgrade planner is free; installed items are not removed after upgrading via upgrade planner + mouseover.
To Reproduce
This applies to any items, but we'll use belts for this example.
Acquire 5 yellow belts and 5 red belts
Install a row of 5 yellow belts
Use the upgrade planner to mark yellow belts for upgrade to red belts
Mouseover the yellow belts, upgrading them to red belts
The 5 red belts are installed. In your inventory, you now have 5 yellow belts AND 5 red belts.
The 5 red belts should have been removed from your inventory.
Proposed solution:
In control.lua, in the upgrading section (approximately line 85), add the following line to remove the upgraded item after a successful upgrade. I believe this will solve the issue. Thanks!
if upgraded_entity then
player.play_sound{
path = "entity-build/"..upgraded_entity.name,
position = upgraded_entity.position
}
>>> inventory.remove(use_item)
end
Describe the Bug
Mouseover upgrade planner is free; installed items are not removed after upgrading via upgrade planner + mouseover.
To Reproduce
This applies to any items, but we'll use belts for this example.
Proposed solution:
In control.lua, in the upgrading section (approximately line 85), add the following line to remove the upgraded item after a successful upgrade. I believe this will solve the issue. Thanks!