[2.1.8] LuaControl::mine_tile fails with non-player characters
Posted: Thu Jun 25, 2026 11:44 pm
This method works with LuaPlayer, but spawning a character entity and using it to mine a tile fails.
The description of LuaControl states "Mines the given tile as if this player (or character) mined it." which is the exact same as LuaControl::mine_entity besides the word "tile", and mine_entity works completely fine with non-player characters.
The description of LuaControl states "Mines the given tile as if this player (or character) mined it." which is the exact same as LuaControl::mine_entity besides the word "tile", and mine_entity works completely fine with non-player characters.