[Twinsen][1.1.4]LuaPlayer.set_personal_logistic_slot not updating moved request
Posted: Thu Dec 03, 2020 8:09 pm
When using LuaPlayer.set_personal_logistic_slot to set a request for an item that is already set as a request, the logistic tab doesn't update correctly.
To reproduce:
- Open logistics tab
Gui updates as expected
Gui shows iron plate 2 times
- Close and open gui, item is shown in slot 31
Gui shows iron plate 2 times again
- Close and open gui, item is shown in slot 10
A bit more testing showed that appears to only not work as expected when setting the item forces Factorio to add a new row to the gui. Setting another item at slot 40 and then repeating the commands works as expected.
Same issue when using set_vehicle_logistic_slot on the spidertron
To reproduce:
- Open logistics tab
Code: Select all
/c game.player.set_personal_logistic_slot(10, {name = "iron-plate", min = 100})
Code: Select all
/c game.player.set_personal_logistic_slot(31, {name = "iron-plate", min = 100})
- Close and open gui, item is shown in slot 31
Code: Select all
/c game.player.set_personal_logistic_slot(10, {name = "iron-plate", min = 100})
- Close and open gui, item is shown in slot 10
A bit more testing showed that appears to only not work as expected when setting the item forces Factorio to add a new row to the gui. Setting another item at slot 40 and then repeating the commands works as expected.
Same issue when using set_vehicle_logistic_slot on the spidertron