[0.16.51] Drill doesn't restart when new ore is placed below
Posted: Sun Aug 26, 2018 11:05 am
Replicate by :
Have a drill working in an ore field -> Expected resources shows value, Ore is placed on the transport belt
The ore in the range of the drill is depleted -> Expected resources shows no value, No more ore on the transport belt.
Add ore beneath the drill with
Then it is :
Expected resources = 100, but the drill doesn't place ore on the transport belt.
It can be "restarted" by :
- In the UI, rotate 4 times
- in code by
Note that first setting it to false is required, Just game.player.selected.active = true does not restart.
Expected behavior is that the drill restarts working when new ore is availale
Have a drill working in an ore field -> Expected resources shows value, Ore is placed on the transport belt
The ore in the range of the drill is depleted -> Expected resources shows no value, No more ore on the transport belt.
Add ore beneath the drill with
Code: Select all
/c game.player.surface.create_entity({name="copper-ore", amount=100, position={game.player.selected.position.x, game.player.selected.position.y}})
Expected resources = 100, but the drill doesn't place ore on the transport belt.
It can be "restarted" by :
- In the UI, rotate 4 times
- in code by
Code: Select all
/c game.player.selected.active = false
game.player.selected.active = true
Expected behavior is that the drill restarts working when new ore is availale