[0.15.12] player.mine_entity() returns false
Posted: Mon May 22, 2017 1:21 am
player.mine_entity(entity) returns false even when mining succeeds.
To recreate,
* place an entity (like the starting stone furnace),
* mouse over the entity
* and then run in the console:
Observed behavior:
* Entity disappears.
* Item is returned to inventory.
* Console prints false.
Expected behavior:
* Entity disappears
* Item is returned to inventory
* Console prints true (if the above two occur)
Screenshot: https://steamuserimages-a.akamaihd.net/ ... 562C2BE7D/
To recreate,
* place an entity (like the starting stone furnace),
* mouse over the entity
* and then run in the console:
Code: Select all
/c game.print(game.player.mine_entity(game.player.selected))
* Entity disappears.
* Item is returned to inventory.
* Console prints false.
Expected behavior:
* Entity disappears
* Item is returned to inventory
* Console prints true (if the above two occur)
Screenshot: https://steamuserimages-a.akamaihd.net/ ... 562C2BE7D/