mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
I forgot about "t[x] or default"
This commit is contained in:
parent
e106a31d82
commit
0d32b1987c
2 changed files with 0 additions and 14 deletions
|
|
@ -169,14 +169,6 @@ function table.set_default(t, key, default)
|
|||
return t[key]
|
||||
end
|
||||
|
||||
function table.get_default(t, key, default)
|
||||
if t[key] == nil then
|
||||
return default
|
||||
end
|
||||
|
||||
return t[key]
|
||||
end
|
||||
|
||||
function table.flat(t)
|
||||
local flat = {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue