Stop project after needed parts are moved to v2

This commit is contained in:
Robin 2021-02-20 14:48:51 +01:00
parent 48c105fb14
commit c661e6c8b5
1 changed files with 3 additions and 3 deletions

View File

@ -24,10 +24,10 @@ local dbdefaults = {
local dbfunc = {}
function dbfunc:Get(key, id)
if(key) then
if(key == 'segments') then
return self['segments']
elseif(key == 'segment' and type(id) == 'number' and id > 0 and self['segments'][id]) then
if(key == 'segment' and type(id) == 'number' and id > 0 and self['segments'][id]) then
return self['segments'][id]
elseif(key == 'segments') then
return self['segments']
else
if(type(self['settings'][key])~='nil') then
return self['settings'][key]