Update main.lua

This commit is contained in:
Miho931 2025-06-08 12:35:06 +02:00
parent 3fbfa8d38c
commit 2c79572f71

View file

@ -56,7 +56,7 @@ CreateThread(function()
local spawnDistance = v.NPC.distance local spawnDistance = v.NPC.distance
if dist < spawnDistance and not isNPCSpawned then if dist < spawnDistance and not isNPCSpawned then
SpawnGuardNPC() SpawnGuardNPC(v.NPC)
elseif dist > spawnDistance and isNPCSpawned then elseif dist > spawnDistance and isNPCSpawned then
RemoveGuardNPC() RemoveGuardNPC()
end end