CrystalFerrai / ValheimMods

Contains all Valheim mods created by Crystal
Other
19 stars 5 forks source link

PathFinder: GetShipControl is no longer a function #5

Closed Dalayeth closed 3 years ago

Dalayeth commented 3 years ago

This causes an error in Hearth and Home and makes it so no area is discovered.

Line 210: if (players.Any(p => p.GetShipControl() != null)) Needs to be changed to. if (players.Any(p => p.IsAttachedToShip() == true))

This stops the errors and allows the map to discover again. I haven't actually tested this with a ship though. This function works a little different. Like it says this is attached at all not just controlling so we are looking for players withing 21 units of anyone who is attached to a ship. Shouldn't cause problems but slight difference.

KairuByte commented 3 years ago

I can confirm this seems to handle the issue, and I did not see any issues when playing solo.

CrystalFerrai commented 3 years ago

This is now fixed in version 2.0.4.