Let harvesters only search for refineries when needing to unload.

This commit is contained in:
tovl
2020-09-04 16:36:43 +02:00
committed by reaperrr
parent e990a83b7a
commit 560c3230cd
2 changed files with 3 additions and 10 deletions

View File

@@ -148,8 +148,6 @@ namespace OpenRA.Mods.Common.Traits
resourceMultipliers = self.TraitsImplementing<HarvesterResourceMultiplier>().ToArray();
UpdateCondition(self);
self.QueueActivity(new CallFunc(() => ChooseNewProc(self, null)));
// Note: This is queued in a FrameEndTask because otherwise the activity is dropped/overridden while moving out of a factory.
if (Info.SearchOnCreation)
self.World.AddFrameEndTask(w => self.QueueActivity(new FindAndDeliverResources(self)));