Keep getting this error after around 10 minutes playing :(
Error
src/game/map.lua:378: attempt to index local 'grid' (a nil value)
Traceback
main.lua:178: in function 'handler'
src/game/map.lua:378: in function 'isGridEmpty'
src/game/villagersystem.lua:278: in function '_update'
src/game/villagersystem.lua:187: in function 'update'
lib/lovetoys/src/Engine.lua:244: in function 'update'
src/game/init.lua:367: in function 'update'
main.lua:104: in function <main.lua:80>
[C]: in function 'xpcall'