[0.15] [kovarex] player.mine_entity() does not damage pickaxe
Posted: Fri May 19, 2017 2:07 pm
Mining entities via the mine_entity() does not damage the player's pickaxe.
To recreate:
Start a new game.
Craft an iron pickaxe.
Run this command:
Note pickaxe is still at full durability.
Expected behavior: Pickaxe is consumed.
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.