From 233bda01233b4e4ce2cbf8b6cb38f2b026c6d952 Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Fri, 5 Feb 2021 08:51:42 +0100 Subject: [PATCH] Annotate Minetest vector metatable support --- vector.lua | 1 + 1 file changed, 1 insertion(+) 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