Skip to content

Commit

Permalink
initial waking up is succeeded by v1.11.0 nh codes
Browse files Browse the repository at this point in the history
  • Loading branch information
TRSasasusu committed Jul 17, 2023
1 parent 6557286 commit 2b738cf
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions NewHorizons/Builder/General/SpawnPointBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,21 @@ public static SpawnPoint Make(GameObject planetGO, SpawnModule module, OWRigidbo
if (module.playerSpawn != null)
{
GameObject spawnGO = GeneralPropBuilder.MakeNew("PlayerSpawnPoint", planetGO, null, module.playerSpawn);
spawnGO.SetActive(false);
// spawnGO.SetActive(false);
spawnGO.layer = Layer.PlayerSafetyCollider;

playerSpawn = spawnGO.AddComponent<SpawnPoint>();
playerSpawn._attachedBody = owRigidBody;
playerSpawn._spawnLocation = SpawnLocation.None;
// playerSpawn._attachedBody = owRigidBody;
// playerSpawn._spawnLocation = SpawnLocation.None;
// #601 we need to actually set the right trigger volumes here
playerSpawn._triggerVolumes = new OWTriggerVolume[0];

// This was a stupid hack to stop players getting stuck in the ground and now we have to keep it forever
spawnGO.transform.position += 4f * spawnGO.transform.up;
spawnGO.SetActive(true);
spawnGO.transform.position += spawnGO.transform.up * 4f;
// spawnGO.transform.position += 4f * spawnGO.transform.up;
// spawnGO.SetActive(true);
//NHLogger.Log("yes playerSpawn sequence now");
Main.Instance.ModHelper.Console.WriteLine("yes playerSpawn sequence now");
}

if (module.shipSpawn != null)
Expand Down

0 comments on commit 2b738cf

Please sign in to comment.