Allow ship log details to be added to vanilla planets (#362)

This commit is contained in:
Nick 2022-09-09 12:46:54 -04:00 committed by GitHub
commit ed00d762ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -219,7 +219,7 @@ namespace NewHorizons.Builder.ShipLog
foreach (NewHorizonsBody body in bodies) foreach (NewHorizonsBody body in bodies)
{ {
if (body.Config.ShipLog?.mapMode?.manualNavigationPosition == null) continue; if (body.Config.ShipLog?.mapMode?.manualNavigationPosition == null && body.Config.ShipLog?.mapMode?.details == null) continue;
// Sometimes they got other names idk // Sometimes they got other names idk
var name = body.Config.name.Replace(" ", ""); var name = body.Config.name.Replace(" ", "");
@ -283,6 +283,7 @@ namespace NewHorizons.Builder.ShipLog
{ {
gameObject.transform.localScale = Vector3.one * body.Config.ShipLog.mapMode.scale; gameObject.transform.localScale = Vector3.one * body.Config.ShipLog.mapMode.scale;
} }
MakeDetails(body, gameObject.transform, greyScaleMaterial);
} }
} }
} }