Lua error in Modul:links at line 162: attempt to call upvalue 'get_entities' (a nil value).