-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Displayname #238
Displayname #238
Conversation
{ | ||
get { return attribute.displayname; } // This is not displayName because of reasons | ||
set { attribute.displayname = value; } | ||
get { return Localizer.Format(attribute.localizationTag); } // This is not displayName because of reasons |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we just return the value without passing it to Localizer.Format?
@@ -338,6 +337,10 @@ void IParserEventSubscriber.Apply(ConfigNode node) | |||
// PostApply Event | |||
void IParserEventSubscriber.PostApply(ConfigNode node) | |||
{ | |||
// Replace biomes | |||
if (biomes?.Count() > 0) | |||
celestialBody.BiomeMap.Attributes = biomes.Select(b => b.attribute).ToArray(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a check if the biome map is null, and if yes, throw an appropriate exception?
No description provided.