1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-15 19:42:10 +00:00
This commit is contained in:
frogTheSecond 2025-09-30 18:45:21 +02:00 committed by GitHub
commit 3ef9032262
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 76 additions and 43 deletions

View file

@ -119,6 +119,9 @@ end
-- }]]
function dump(value, indent)
indent = indent or "\t"
assert(type(indent) == "string", "dump()'s second argument should be a string or nil.")
local newline = indent == "" and "" or "\n"
local rope = {}
@ -873,3 +876,4 @@ function core.parse_coordinates(x, y, z, relative_to)
local rz = core.parse_relative_number(z, relative_to.z)
return rx and ry and rz and vector.new(rx, ry, rz)
end