Skip to content

Commit

Permalink
Cleanup loggers
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-r-elp committed Sep 15, 2024
1 parent 06c78f1 commit 5e95a4d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions MultiplayerExtensions/Patchers/MenuEnvironmentPatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5e95a4d

Please sign in to comment.