diff --git a/OpenRA.Mods.Common/Traits/World/ResourceLayer.cs b/OpenRA.Mods.Common/Traits/World/ResourceLayer.cs index 16d7cbd0d6..e37e5222bb 100644 --- a/OpenRA.Mods.Common/Traits/World/ResourceLayer.cs +++ b/OpenRA.Mods.Common/Traits/World/ResourceLayer.cs @@ -176,7 +176,7 @@ namespace OpenRA.Mods.Common.Traits if (!resourceInfo.AllowedTerrainTypes.Contains(cellTerrainType)) return false; - return BuildingInfluence.GetBuildingsAt(cell).All(a => a.Info.TraitInfo().TerrainTypes.Contains(cellTerrainType)); + return BuildingInfluence.GetBuildingsAt(cell).All(a => a.Info.TraitInfo().TerrainTypes.Contains(resourceInfo.TerrainType)); } ResourceLayerContents CreateResourceCell(string resourceType, CPos cell, int density)