From 02568f8f081191a01330700ce989a3c8e3bbf25d Mon Sep 17 00:00:00 2001 From: Max Cahill <1bardesign@gmail.com> Date: Tue, 7 Apr 2020 13:51:13 +1000 Subject: [PATCH] [modified] intersect.lua imports vec2 unconditionally rather than attempting to use the global --- intersect.lua | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/intersect.lua b/intersect.lua index c5da48a..5428bac 100644 --- a/intersect.lua +++ b/intersect.lua @@ -13,13 +13,8 @@ so these functions can be reentrant ]] ---import vec2 if not defined globally -local global_vec2 = vec2 -local vec2 = global_vec2 -if not vec2 then - local vec2_path = (...):gsub("intersect", "vec2") - vec2 = require(vec2_path) -end +local path = (...):gsub("intersect", "") +local vec2 = require(path .. "vec2") --module storage local intersect = {}