From a52f04f0dd4c71f62f19aa99259021e15d089217 Mon Sep 17 00:00:00 2001 From: Lacyway <20912169+Lacyway@users.noreply.github.com> Date: Fri, 1 Nov 2024 23:30:58 +0100 Subject: [PATCH] Fix nullref --- Fika.Core/Networking/FikaServer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Fika.Core/Networking/FikaServer.cs b/Fika.Core/Networking/FikaServer.cs index 473a30ed..d667e06e 100644 --- a/Fika.Core/Networking/FikaServer.cs +++ b/Fika.Core/Networking/FikaServer.cs @@ -878,7 +878,7 @@ private void OnWeatherPacketReceived(WeatherPacket packet, NetPeer peer) IsRequest = false, HasData = true, Season = coopGame.Season, - SpringSnowFactor = coopGame.SeasonsSettings.SpringSnowFactor, + SpringSnowFactor = coopGame.SeasonsSettings != null ? coopGame.SeasonsSettings.SpringSnowFactor : Vector3.zero, // Temp fix Amount = coopGame.WeatherClasses.Length, WeatherClasses = coopGame.WeatherClasses };