Skip to content
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

Merged
merged 7 commits into from
Sep 28, 2017
Merged

Displayname #238

merged 7 commits into from
Sep 28, 2017

Conversation

Sigma88
Copy link
Contributor

@Sigma88 Sigma88 commented Sep 28, 2017

No description provided.

{
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
Copy link
Member

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();
Copy link
Member

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?

@StollD StollD merged commit 992a7e1 into master Sep 28, 2017
@Sigma88 Sigma88 deleted the displayname branch October 7, 2017 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants