From c5547ec20b005a2f61982d1dec46ab55e53681ae Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Thu, 20 Apr 2017 19:57:26 +0100 Subject: [PATCH] Fix harvesters harvesting resources from underground. --- OpenRA.Mods.Common/ActorExts.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenRA.Mods.Common/ActorExts.cs b/OpenRA.Mods.Common/ActorExts.cs index 47c38529a5..0220493056 100644 --- a/OpenRA.Mods.Common/ActorExts.cs +++ b/OpenRA.Mods.Common/ActorExts.cs @@ -125,6 +125,10 @@ namespace OpenRA.Mods.Common public static bool CanHarvestAt(this Actor self, CPos pos, ResourceLayer resLayer, HarvesterInfo harvInfo, ResourceClaimLayer territory) { + // Resources only exist in the ground layer + if (pos.Layer != 0) + return false; + var resType = resLayer.GetResource(pos); if (resType == null) return false;