From 9b6ec809b322ce851d421a93531c908e3d1365f1 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Thu, 5 Dec 2019 00:15:05 +0200 Subject: [PATCH] Map editor now works with new ruleset --- core/src/com/unciv/ui/mapeditor/TileEditorOptionsTable.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/com/unciv/ui/mapeditor/TileEditorOptionsTable.kt b/core/src/com/unciv/ui/mapeditor/TileEditorOptionsTable.kt index 772e3c8d4d..0d1336507c 100644 --- a/core/src/com/unciv/ui/mapeditor/TileEditorOptionsTable.kt +++ b/core/src/com/unciv/ui/mapeditor/TileEditorOptionsTable.kt @@ -157,6 +157,7 @@ class TileEditorOptionsTable(val mapEditorScreen: MapEditorScreen): Table(Camera clearSelection() selectedResource = resource val tileInfo = TileInfo() + tileInfo.ruleSet = UncivGame.Current.ruleSet val terrain = resource.terrainsCanBeFoundOn.first() val terrainObject = gameBasics.Terrains[terrain]!! @@ -180,6 +181,7 @@ class TileEditorOptionsTable(val mapEditorScreen: MapEditorScreen): Table(Camera private fun addTerrainOptions(terrainFeaturesTable: Table, baseTerrainTable: Table) { for (terrain in gameBasics.Terrains.values) { val tileInfo = TileInfo() + tileInfo.ruleSet = UncivGame.Current.ruleSet if (terrain.type == TerrainType.TerrainFeature) { tileInfo.baseTerrain = when { terrain.occursOn != null -> terrain.occursOn.first()