Skip to content

Commit

Permalink
Merge pull request #45 from MatiasPastori/patch-1
Browse files Browse the repository at this point in the history
Small fix for presets beyond 180°
  • Loading branch information
IllustrisJack authored Dec 2, 2023
2 parents f3536d0 + 1d4c117 commit 8a8f2b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions ext/Client/Time.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 8a8f2b9

Please sign in to comment.