mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-03-10 16:14:45 +00:00
update wacky comment again
This commit is contained in:
parent
e0894000c2
commit
0e5a9c1668
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user