fixed respawn airgroup throwing errors (#52)

This commit is contained in:
2025-06-03 17:42:30 +02:00
committed by GitHub
parent 4c59f55dea
commit bdf7154333
+4 -1
View File
@@ -297,8 +297,9 @@ do --- RESPAWN FUNCTIONS
function AirGroup:StartRespawn() function AirGroup:StartRespawn()
self:SetState("Dead") self:SetState("Dead")
---@param selfA AirGroup
local respawnTask = function(selfA, time) local respawnTask = function(selfA, time)
selfA:RepairDelayed() selfA:StartRepair()
end end
local delay = self._config:getDeathDelay() local delay = self._config:getDeathDelay()
@@ -315,6 +316,8 @@ do --- RESPAWN FUNCTIONS
self:Spawn() self:Spawn()
end end
---comment
---@param selfA AirGroup
local rearmTask = function(selfA, time) local rearmTask = function(selfA, time)
self:StartRearm() self:StartRearm()
end end