update wacky comment again

This commit is contained in:
_nebula 2023-08-03 00:36:08 +01:00
parent e0894000c2
commit 0e5a9c1668

View File

@ -257,7 +257,10 @@ public class RespawnOnDeath : MonoBehaviour
var sectorList = PlayerTransformSync.LocalInstance.SectorDetector.SectorList;
if (sectorList.All(x => x.Type != Sector.Name.TimberHearth))
{
// If you die on TH, things would be unloaded when you respawn. So reset all that stuff.
// Spooky scary legacy code?
// Original comment was "stops sectors from breaking when you die on TH??"
// I think dying on TH used to break all the sectors. Something about you not technically re-entering TH when dying inside it.
// I commented out these lines, and everything seemed fine. But I'm not gonna touch them just in case. :P
Locator.GetPlayerSectorDetector().RemoveFromAllSectors();
Locator.GetPlayerCameraDetector().GetComponent<AudioDetector>().DeactivateAllVolumes(0f);
}