To recreate:
Start a new game.
Craft an iron pickaxe.
Run this command:
Code: Select all
/c for k, v in pairs(game.player.surface.find_entities_filtered{type="tree"}) do game.player.mine_entity(v) end
Expected behavior: Pickaxe is consumed.
Code: Select all
/c for k, v in pairs(game.player.surface.find_entities_filtered{type="tree"}) do game.player.mine_entity(v) end