Error while running event Tree-Planting::on_nth_tick(10)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__Tree-Planting/control.lua:33: in function <Tree-Planting/control.lua:17>
Yep, turns out there was a bug where if you picked up a wood item, when it was time to plant it, it would crash the game. Oops. Got the AI to fix it plus implement a change to make the trees not grow in bunches.