From 81513d6d10fa8cb06318e0030645dd97a0446584 Mon Sep 17 00:00:00 2001 From: tewlwolow <61018886+tewlwolow@users.noreply.github.com> Date: Fri, 21 Aug 2020 16:49:13 +0200 Subject: [PATCH] increased distance prevents sudden pop-ins --- Fallen Ash/mwse/mods/Fallen Ash/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Fallen Ash/mwse/mods/Fallen Ash/main.lua b/Fallen Ash/mwse/mods/Fallen Ash/main.lua index e7ecc39..472fd5f 100644 --- a/Fallen Ash/mwse/mods/Fallen Ash/main.lua +++ b/Fallen Ash/mwse/mods/Fallen Ash/main.lua @@ -212,7 +212,7 @@ local function setAshLevelForActiveCells(level) local playerPos = tes3.player.position for _, cell in ipairs(tes3.getActiveCells()) do for ref in cell:iterateReferences() do - if (ref.sceneNode ~= nil and ref.disabled == false and getAshLevelForReference(ref) ~= level and playerPos:distance(ref.position) < 2048) then + if (ref.sceneNode ~= nil and ref.disabled == false and getAshLevelForReference(ref) ~= level and playerPos:distance(ref.position) < 6144) then setAshLevelForReference(ref, level) end end