Allow ship log details to be added to vanilla planets

This commit is contained in:
Noah Pilarski 2022-09-08 21:12:27 -04:00
parent 0a54bb2447
commit fafdb1c48b

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);
} }
} }
} }