diff --git a/MultiplayerExtensions/Patchers/MenuEnvironmentPatcher.cs b/MultiplayerExtensions/Patchers/MenuEnvironmentPatcher.cs index 04edaca..5aa05e9 100644 --- a/MultiplayerExtensions/Patchers/MenuEnvironmentPatcher.cs +++ b/MultiplayerExtensions/Patchers/MenuEnvironmentPatcher.cs @@ -43,11 +43,8 @@ private void SetEnvironmentScene(ref MultiplayerLevelScenesTransitionSetupDataSO return; EnvironmentName envName = beatmapLevel.GetEnvironmentName(beatmapKey.beatmapCharacteristic, beatmapKey.difficulty); - EnvironmentInfoSO? environmentInfo = _environmentsListModel.GetEnvironmentInfoBySerializedNameSafe(envName); _originalEnvironmentInfo = __instance.GetOrLoadMultiplayerEnvironmentInfo(); // Save original env info in a temp variable - _logger.Debug($"Original Env Name {_originalEnvironmentInfo.serializedName}"); - ____loadedMultiplayerEnvironmentInfo = environmentInfo; - _logger.Debug($"Override env name {____loadedMultiplayerEnvironmentInfo.serializedName}"); + ____loadedMultiplayerEnvironmentInfo = _environmentsListModel.GetEnvironmentInfoBySerializedNameSafe(envName); if (_gameplaySetup.environmentOverrideSettings.overrideEnvironments) ____loadedMultiplayerEnvironmentInfo = _gameplaySetup.environmentOverrideSettings.GetOverrideEnvironmentInfoForType(____loadedMultiplayerEnvironmentInfo.environmentType); }