From 4b8dc2c3b091a9fd59651725ba011c159686a2b7 Mon Sep 17 00:00:00 2001 From: MatiasPastori <48894486+MatiasPastori@users.noreply.github.com> Date: Fri, 1 Dec 2023 21:07:08 -0300 Subject: [PATCH 1/2] =?UTF-8?q?Small=20fix=20for=20presets=20beyond=20180?= =?UTF-8?q?=C2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Small fix to get rid of logic that shouldn't be there anymore since its being used somewhere else below for the moon. This was causing presets beyond 180° (night time presets) to be corrupted with other sunY position values, messing with the sorting of the presets for the day-night cycles. --- ext/Client/Time.lua | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ext/Client/Time.lua b/ext/Client/Time.lua index 3588fb0..1045a20 100644 --- a/ext/Client/Time.lua +++ b/ext/Client/Time.lua @@ -216,10 +216,6 @@ function Time:_OnAddTime(p_StartingTime, p_IsStatic, p_LengthOfDayInSeconds) local s_SkyBrightness = tonumber(l_Object.rawPreset.Sky.BrightnessScale) if l_Object.type == l_Type and s_SunRotationY ~= nil then - -- Check if night mode (moon enabled) - if s_SunRotationY >= 180 then - s_SunRotationY = 360 - s_SunRotationY - end m_Logger:Write(" - " .. tostring(l_ID) .. " (Sun: " .. tostring(s_SunRotationY) .. ")") table.insert(self._SortedDynamicPresetsTable, {l_ID, s_SunRotationY}) end From 1d4c1174b39142f6749d4d5cff684dbd4afdd653 Mon Sep 17 00:00:00 2001 From: MatiasPastori <48894486+MatiasPastori@users.noreply.github.com> Date: Fri, 1 Dec 2023 21:17:06 -0300 Subject: [PATCH 2/2] Update mod.json --- mod.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod.json b/mod.json index 8ffe58b..16cafd8 100644 --- a/mod.json +++ b/mod.json @@ -3,7 +3,7 @@ "Authors": ["Powback", "IllustrisJack", "Lesley", "GreatApo", "FoolHen"], "Description": "Handles VE", "URL": "https://github.com/BF3RM/VEManager", - "Version": "0.5.0", + "Version": "0.5.1", "HasWebUI": false, "HasVeniceEXT": true }