mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
improving the cheat commands
This commit is contained in:
parent
19665caead
commit
e7e47df7bf
5 changed files with 74 additions and 24 deletions
|
|
@ -167,6 +167,14 @@ function table.remove_value(t, x)
|
|||
end
|
||||
end
|
||||
|
||||
function table.insert_unique(t, val)
|
||||
if table.has(t, val) then
|
||||
return
|
||||
end
|
||||
|
||||
table.insert(t, val)
|
||||
end
|
||||
|
||||
function table.tostring(t)
|
||||
local s = '['
|
||||
for i,v in ipairs(t) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue