From 612ad0ab5574e6ab86f6a5b1c530343336153f04 Mon Sep 17 00:00:00 2001 From: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com> Date: Thu, 9 Sep 2021 19:03:51 +0200 Subject: [PATCH] Fix era notification (#5161) --- core/src/com/unciv/models/ruleset/Era.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/com/unciv/models/ruleset/Era.kt b/core/src/com/unciv/models/ruleset/Era.kt index cc84f38655..998f444dbf 100644 --- a/core/src/com/unciv/models/ruleset/Era.kt +++ b/core/src/com/unciv/models/ruleset/Era.kt @@ -42,4 +42,7 @@ class Era : INamed, IHasUniques { } fun getHexColor() = "#" + getColor().toString().substring(0, 6) -} \ No newline at end of file + + /** This is used for display purposes in templates */ + override fun toString() = name +}