mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Only correct spawn velocity when NH is handling spawn (fix archipelago incompat)
This commit is contained in:
parent
cb64f79c5d
commit
9f5257d087
@ -71,11 +71,14 @@ namespace NewHorizons.Handlers
|
||||
// Spawn ship
|
||||
Delay.FireInNUpdates(SpawnShip, 30);
|
||||
|
||||
if (UsingCustomSpawn() || shouldWarpInFromShip || shouldWarpInFromVessel)
|
||||
{
|
||||
// Have had bug reports (#1034, #975) where sometimes after spawning via vessel warp or ship warp you die from impact velocity after being flung
|
||||
// Something weird must be happening with velocity.
|
||||
// Try to correct it here after the ship is done spawning
|
||||
Delay.FireInNUpdates(() => FixVelocity(shouldWarpInFromVessel, shouldWarpInFromShip), 31);
|
||||
}
|
||||
}
|
||||
|
||||
private static void FixVelocity(bool shouldWarpInFromVessel, bool shouldWarpInFromShip)
|
||||
{
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
"author": "xen, Bwc9876, JohnCorby, MegaPiggy, Trifid, and friends",
|
||||
"name": "New Horizons",
|
||||
"uniqueName": "xen.NewHorizons",
|
||||
"version": "1.26.0",
|
||||
"version": "1.26.1",
|
||||
"owmlVersion": "2.12.1",
|
||||
"dependencies": [ "JohnCorby.VanillaFix", "xen.CommonCameraUtility", "dgarro.CustomShipLogModes" ],
|
||||
"conflicts": [ "PacificEngine.OW_CommonResources" ],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user