From 9f02777f14b3c915e59ec81592558c4cbb375b01 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Thu, 20 Aug 2020 20:29:34 +0100 Subject: [PATCH] re-add nil check for get_distance function --- api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.lua b/api.lua index 795e02b..7505491 100644 --- a/api.lua +++ b/api.lua @@ -196,7 +196,7 @@ end -- calculate distance local get_distance = function(a, b) --- if not a or not b then return 50 end -- nil check + if not a or not b then return 50 end -- nil check local x, y, z = a.x - b.x, a.y - b.y, a.z - b.z