Skip to content

Commit

Permalink
Fix bad reference: StructureUnit -> FactoryUnit (FAForever#4580)
Browse files Browse the repository at this point in the history
  • Loading branch information
Garanas authored Jan 11, 2023
1 parent acd393f commit 447f90d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/aeonunits.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ AFactoryUnit = ClassUnit(FactoryUnit) {
-- When factory is paused take some action
if self:IsUnitState('Building') and self.UnitBeingBuilt then
self:StopUnitAmbientSound('ConstructLoop')
StructureUnit.StopBuildingEffects(self, self.UnitBeingBuilt)
FactoryUnit.StopBuildingEffects(self, self.UnitBeingBuilt)
end
StructureUnit.OnPaused(self)
FactoryUnit.OnPaused(self)
end,

---@param self AFactoryUnit
OnUnpaused = function(self)
FactoryUnit.OnUnpaused(self)
if self:IsUnitState('Building') and self.UnitBeingBuilt then
StructureUnit.StopBuildingEffects(self, self.UnitBeingBuilt)
FactoryUnit.StopBuildingEffects(self, self.UnitBeingBuilt)
self:StartBuildFx(self:GetFocusUnit())
end
end,
Expand Down

0 comments on commit 447f90d

Please sign in to comment.