changes
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
NilIsZero={
|
||||
__index=function(t,k)
|
||||
makeclass('NilIsZero') -- This is intended to be used as a metatable
|
||||
|
||||
function NilIsZero.__index(t,k)
|
||||
return 0
|
||||
end,
|
||||
__newindex=function(t,k,v)
|
||||
end
|
||||
|
||||
function NilIsZero.__newindex(t,k,v)
|
||||
if v~=nil and v~=0 then rawset(t,k,v) end
|
||||
end }
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user