From de4105c0223032164c69999bd0827073ed3e870b Mon Sep 17 00:00:00 2001 From: Buurazu Date: Thu, 7 Apr 2022 15:16:21 -0400 Subject: [PATCH] use Fireplace for pathfinding in case it fixes online desync --- main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.lua b/main.lua index 1893b7e7..c43842ce 100644 --- a/main.lua +++ b/main.lua @@ -1039,8 +1039,8 @@ local function attemptPathfind(entity) -- Don't reattempt pathfinding more than 3 times a second, unless this is a new entity if pathsChecked[entity.InitSeed] == false and EID.GameUpdateCount - lastPathfindFrame < 10 then return false end - -- Spawn a Shopkeeper entity to attempt a pathfind to the target pickup, then remove it afterwards - pathCheckerEntity = game:Spawn(17, 0, EID.player.Position, nullVector, EID.player, 6969, 4354) + -- Spawn a Fireplace entity to attempt a pathfind to the target pickup, then remove it afterwards + pathCheckerEntity = game:Spawn(33, 0, EID.player.Position, nullVector, EID.player, 6969, 4354) pathCheckerEntity:GetData()["EID_Pathfinder"] = true pathCheckerEntity.Visible = false local success = pathCheckerEntity:ToNPC().Pathfinder:HasPathToPos(entity.Position, false)