diff --git a/OpenRA.Mods.Common/Activities/FindResources.cs b/OpenRA.Mods.Common/Activities/FindResources.cs index 2fe14e0451..07600143c1 100644 --- a/OpenRA.Mods.Common/Activities/FindResources.cs +++ b/OpenRA.Mods.Common/Activities/FindResources.cs @@ -67,17 +67,10 @@ namespace OpenRA.Mods.Common.Activities if (!harv.IsEmpty) return deliver; - var cachedPosition = self.Location; - harv.UnblockRefinery(self); - - // Only do this if UnblockRefinery did nothing. - if (self.Location == cachedPosition) - { - var unblockCell = harv.LastHarvestedCell ?? (self.Location + harvInfo.UnblockCell); - var moveTo = mobile.NearestMoveableCell(unblockCell, 2, 5); - self.QueueActivity(mobile.MoveTo(moveTo, 1)); - self.SetTargetLine(Target.FromCell(self.World, moveTo), Color.Gray, false); - } + var unblockCell = harv.LastHarvestedCell ?? (self.Location + harvInfo.UnblockCell); + var moveTo = mobile.NearestMoveableCell(unblockCell, 2, 5); + self.QueueActivity(mobile.MoveTo(moveTo, 1)); + self.SetTargetLine(Target.FromCell(self.World, moveTo), Color.Gray, false); var randFrames = self.World.SharedRandom.Next(100, 175); return ActivityUtils.SequenceActivities(NextActivity, new Wait(randFrames), this); diff --git a/OpenRA.Mods.Common/Traits/Harvester.cs b/OpenRA.Mods.Common/Traits/Harvester.cs index b1c81497a0..3050955dc7 100644 --- a/OpenRA.Mods.Common/Traits/Harvester.cs +++ b/OpenRA.Mods.Common/Traits/Harvester.cs @@ -215,17 +215,6 @@ namespace OpenRA.Mods.Common.Traits var moveTo = mobile.NearestMoveableCell(unblockCell, 1, 5); self.QueueActivity(mobile.MoveTo(moveTo, 1)); self.SetTargetLine(Target.FromCell(self.World, moveTo), Color.Gray, false); - - var territory = self.World.WorldActor.TraitOrDefault(); - if (territory != null) - territory.ClaimResource(self, moveTo); - - var notify = self.TraitsImplementing(); - var next = new FindResources(self); - foreach (var n in notify) - n.MovingToResources(self, moveTo, next); - - self.QueueActivity(next); } } }