mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Fix vector.from_string returning a table without vector metatable
This commit is contained in:
parent
84fdd369d4
commit
1965628705
2 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue