mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Convert name to string if not custom string
This commit is contained in:
parent
6b7ed87084
commit
ef539ad840
@ -14,7 +14,13 @@ namespace NewHorizons.Patches
|
|||||||
{
|
{
|
||||||
var ao = __instance.GetAstroObject();
|
var ao = __instance.GetAstroObject();
|
||||||
|
|
||||||
if (ao == null || ao._name != AstroObject.Name.CustomString) return true;
|
if (ao == null) return true;
|
||||||
|
|
||||||
|
if (ao._name != AstroObject.Name.CustomString)
|
||||||
|
{
|
||||||
|
__result = AstroObject.AstroObjectNameToString(ao._name);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
__result = string.Empty;
|
__result = string.Empty;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user