Cleanup code

This commit is contained in:
robin 2021-05-25 15:34:42 +02:00
parent 07687e1b03
commit ec7cffd606
1 changed files with 9 additions and 11 deletions

View File

@ -43,7 +43,6 @@ local function scanVoid()
modul['db'][playerID][0] = itemlist
end
end
local function bagLoop(id, res)
for k, v in pairs(modul['db']) do
local units = child:GetNamespace('units')
@ -93,7 +92,6 @@ events.ITEM_UNLOCKED = scanVoid
events.VOID_TRANSFER_DONE = scanVoid
local function OnEvent(self, event, ...)
local playerID = child.getPID()
-- print(modulname, event, ...)
if(playerID and type(events[event])=='function') then
modul['db'] = child:GetNamespace(modul.name)
modul['db'][playerID] = modul['db'][playerID] or {}