This commit is contained in:
2022-04-25 12:20:29 -04:00
parent b791cdc606
commit 6ee56bac61
4 changed files with 87 additions and 38 deletions

View File

@@ -1,10 +1,11 @@
makeclass('NilIsZero') -- This is intended to be used as a metatable
makeclass('login')
function NilIsZero.__index(t,k)
return 0
end
return 0
end
function NilIsZero.__newindex(t,k,v)
if v~=nil and v~=0 then rawset(t,k,v) end
end
if v~=nil and v~=0 then rawset(t,k,v) end
end