diff --git a/vector.lua b/vector.lua index 59c502b..e4c963c 100644 --- a/vector.lua +++ b/vector.lua @@ -42,6 +42,7 @@ function to_xyzw(v) return {x = v[1], y = v[2], z = v[3], w = v[4]} end +--+ not necessarily required, as Minetest respects the metatable function to_minetest(v) return mt_vector.new(unpack(v)) end