mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Merge branch 'main' into devtools
This commit is contained in:
commit
ee853aab4c
11 changed files with 114 additions and 19 deletions
|
|
@ -276,6 +276,15 @@ function table.tostring(t)
|
|||
return s..']'
|
||||
end
|
||||
|
||||
function file.readlines(path)
|
||||
local str = file.read(path)
|
||||
local lines = {}
|
||||
for s in str:gmatch("[^\r\n]+") do
|
||||
table.insert(lines, s)
|
||||
end
|
||||
return lines
|
||||
end
|
||||
|
||||
console.add_command(
|
||||
"tp obj:sel=$obj.id x:num~pos.x y:num~pos.y z:num~pos.z",
|
||||
function (args, kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue