From 2acf6a16beca7ac8334ca2e3d72091e404bac893 Mon Sep 17 00:00:00 2001 From: PulseLane <291593+PulseLane@users.noreply.github.com> Date: Fri, 18 Nov 2022 20:40:35 -0500 Subject: [PATCH] Set height settings in replay as determined by the replay. --- ScoreSaber/Core/ReplaySystem/ReplayLoader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ScoreSaber/Core/ReplaySystem/ReplayLoader.cs b/ScoreSaber/Core/ReplaySystem/ReplayLoader.cs index bff9ee8..63594ad 100644 --- a/ScoreSaber/Core/ReplaySystem/ReplayLoader.cs +++ b/ScoreSaber/Core/ReplaySystem/ReplayLoader.cs @@ -107,7 +107,7 @@ await Task.Run(() => { Plugin.ReplayState.LoadedReplayFile = replay; PlayerData playerData = _playerDataModel.playerData; PlayerSpecificSettings localPlayerSettings = playerData.playerSpecificSettings; - PlayerSpecificSettings playerSettings = new PlayerSpecificSettings(replay.metadata.LeftHanded, localPlayerSettings.playerHeight, localPlayerSettings.automaticPlayerHeight, localPlayerSettings.sfxVolume, localPlayerSettings.reduceDebris, localPlayerSettings.noTextsAndHuds, localPlayerSettings.noFailEffects, localPlayerSettings.advancedHud, localPlayerSettings.autoRestart, localPlayerSettings.saberTrailIntensity, localPlayerSettings.noteJumpDurationTypeSettings, localPlayerSettings.noteJumpFixedDuration, localPlayerSettings.noteJumpStartBeatOffset, localPlayerSettings.hideNoteSpawnEffect, localPlayerSettings.adaptiveSfx, localPlayerSettings.environmentEffectsFilterDefaultPreset, localPlayerSettings.environmentEffectsFilterExpertPlusPreset); + PlayerSpecificSettings playerSettings = new PlayerSpecificSettings(replay.metadata.LeftHanded, replay.metadata.InitialHeight, replay.heightKeyframes.Count > 0, localPlayerSettings.sfxVolume, localPlayerSettings.reduceDebris, localPlayerSettings.noTextsAndHuds, localPlayerSettings.noFailEffects, localPlayerSettings.advancedHud, localPlayerSettings.autoRestart, localPlayerSettings.saberTrailIntensity, localPlayerSettings.noteJumpDurationTypeSettings, localPlayerSettings.noteJumpFixedDuration, localPlayerSettings.noteJumpStartBeatOffset, localPlayerSettings.hideNoteSpawnEffect, localPlayerSettings.adaptiveSfx, localPlayerSettings.environmentEffectsFilterDefaultPreset, localPlayerSettings.environmentEffectsFilterExpertPlusPreset); _standardLevelScenesTransitionSetupDataSO.didFinishEvent -= UploadDaemonHelper.ThreeInstance; UnityMainThreadTaskScheduler.Factory.StartNew(() => _menuTransitionsHelper.StartStandardLevel("Replay", difficultyBeatmap, difficultyBeatmap.level,