mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Fix vector.from_string returning a table without vector metatable
This commit is contained in:
@@ -61,7 +61,7 @@ function vector.from_string(s, init)
|
||||
if not (x and y and z) then
|
||||
return nil
|
||||
end
|
||||
return {x = x, y = y, z = z}, np
|
||||
return fast_new(x, y, z), np
|
||||
end
|
||||
|
||||
function vector.to_string(v)
|
||||
|
Reference in New Issue
Block a user