Skip to content

Commit

Permalink
refactor(weatherParticles): remove cached variable
Browse files Browse the repository at this point in the history
  • Loading branch information
FjamZoo committed Nov 21, 2023
1 parent 39fea23 commit 055f688
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/weather.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
local serverWeather = GlobalState.weather
local hadSnow = false
local playerState = LocalPlayer.state
local hasIceResource = GetResourceState('nve_iced_alamo') ~= 'missing'

local function resetWeatherParticles()
if hadSnow then
Expand Down Expand Up @@ -33,7 +32,7 @@ local function setWeatherParticles()
RequestScriptAudioBank('SNOW_FOOTSTEPS', false)
WaterOverrideSetStrength(0.9)

if hasIceResource then
if GetResourceState('nve_iced_alamo') ~= 'missing' then
RequestIpl('alamo_ice')
end

Expand Down

0 comments on commit 055f688

Please sign in to comment.