From ccd7f6326a1bf1c8696f4005f9a022fef96be764 Mon Sep 17 00:00:00 2001 From: Jonathan Coates Date: Wed, 5 Apr 2023 21:59:20 +0100 Subject: [PATCH] Allow GPS hosts to be closer together I'm not quite sure why I typed a 5 here. There we go. --- .../src/main/resources/data/computercraft/lua/rom/apis/gps.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/gps.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/gps.lua index 182936912..d95715fe0 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/apis/gps.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/apis/gps.lua @@ -161,7 +161,7 @@ function locate(_nTimeout, _bDebug) -- previous position, replace that instead of inserting. local insIndex = math.min(3, #tFixes + 1) for i, older in pairs(tFixes) do - if (older.vPosition - tFix.vPosition):length() < 5 then + if (older.vPosition - tFix.vPosition):length() < 1 then insIndex = i break end