From 3bc5fe1d921f9e7c589bc22581e144c47949c1cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Sun, 2 Feb 2025 03:42:30 +0300 Subject: [PATCH] forgot the index metamethod --- data/scripts/vector3.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/scripts/vector3.lua b/data/scripts/vector3.lua index 7e2e691..b477492 100644 --- a/data/scripts/vector3.lua +++ b/data/scripts/vector3.lua @@ -113,4 +113,6 @@ function Vector3:__tostring() return "Vector3(" .. tostring(self.x) .. ", " .. tostring(self.y) .. ", " .. tostring(self.z) .. ")" end +Vector3.__index = Vector3 + return Vector3 \ No newline at end of file