forgot the index metamethod

This commit is contained in:
Lera Elvoé 2025-02-02 03:42:30 +03:00
parent a84a9e98bb
commit 3bc5fe1d92
Signed by: yagich
SSH Key Fingerprint: SHA256:6xjGb6uA7lAVcULa7byPEN//rQ0wPoG+UzYVMfZnbvc

View File

@ -113,4 +113,6 @@ function Vector3:__tostring()
return "Vector3(" .. tostring(self.x) .. ", " .. tostring(self.y) .. ", " .. tostring(self.z) .. ")" return "Vector3(" .. tostring(self.x) .. ", " .. tostring(self.y) .. ", " .. tostring(self.z) .. ")"
end end
Vector3.__index = Vector3
return Vector3 return Vector3