From 1eac24669f12b44f33435c2d648e442126c9d891 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Sat, 29 Oct 2022 10:05:28 -0500 Subject: [PATCH] Force ground snow --- scripts/client/utilities.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/client/utilities.js b/scripts/client/utilities.js index 490bcef1..b5a400a0 100644 --- a/scripts/client/utilities.js +++ b/scripts/client/utilities.js @@ -224,13 +224,11 @@ function setLocalPlayerInterior(interior) { // =========================================================================== -function setSnowState(falling, ground) { +function setSnowState(falling, ground, forceGround) { logToConsole(LOG_DEBUG, `[AGRP.Utilities] Setting falling snow to ${falling} and ground snow to ${ground}`); snowing = falling; - if (ground) { - forceSnowing(false); - forceSnowing(ground); - } + snow.enabled = ground; + forceSnowing(forceGround); } // ===========================================================================