Plop a yellow belt just inside the end of a construction network with red belts in storage,
Hit it with the upgrade planner
/c game.print(game.player.selected.to_be_upgraded()) -> true
/c game.print(game.player.selected.get_upgrade_target()) -> nil
If there are no red belts in storage upgrade_target is returned correctly, same if there are no bots dispatched to the task.
[kovarex] [1.0.0] LuaEntity::get_upgrade_target() returns nil if a bot is dispatched
Re: [kovarex] [1.0.0] LuaEntity::get_upgrade_target() returns nil if a bot is dispatched
Hello, thanks for the report.
This problem was already solved for 1.1 as part of upgrade target visualisation.
This problem was already solved for 1.1 as part of upgrade target visualisation.
-
- Burner Inserter
- Posts: 14
- Joined: Thu Jul 05, 2018 7:46 am
- Contact:
Re: [kovarex] [1.0.0] LuaEntity::get_upgrade_target() returns nil if a bot is dispatched
That's great news! Thanks!