Fixed bug where infinite production queue does not notify on ready

This commit is contained in:
Ivan Perez
2025-07-22 12:01:36 +09:00
committed by Gustas Kažukauskas
parent 44c6747dec
commit 25be2149c1

View File

@@ -488,7 +488,10 @@ namespace OpenRA.Mods.Common.Traits
{
// Make sure the item hasn't been invalidated between the ProductionItem ticking and this FrameEndTask running
if (!Queue.Any(i => i.Done && i.Item == unit.Name))
{
hasPlayedSound = false;
return;
}
var isBuilding = unit.HasTraitInfo<BuildingInfo>();
if (isBuilding && !hasPlayedSound)