Update Warehouse.lua

This commit is contained in:
Frank
2020-04-17 15:58:28 +02:00
parent efaf7e856c
commit ca2ae9657c
@@ -6135,6 +6135,9 @@ function WAREHOUSE:_OnEventBirth(EventData)
-- Debug message. -- Debug message.
self:T(self.lid..string.format("Warehouse %s captured event birth of its asset unit %s. spawned=%s", self.alias, EventData.IniUnitName, tostring(asset.spawned))) self:T(self.lid..string.format("Warehouse %s captured event birth of its asset unit %s. spawned=%s", self.alias, EventData.IniUnitName, tostring(asset.spawned)))
if request then
-- Birth is triggered for each unit. We need to make sure not to call this too often! -- Birth is triggered for each unit. We need to make sure not to call this too often!
if not asset.spawned then if not asset.spawned then
@@ -6166,6 +6169,9 @@ function WAREHOUSE:_OnEventBirth(EventData)
else else
--self:T3({wid=wid, uid=self.uid, match=(wid==self.uid), tw=type(wid), tu=type(self.uid)}) --self:T3({wid=wid, uid=self.uid, match=(wid==self.uid), tw=type(wid), tu=type(self.uid)})
end end
else
self:E(self.lid..string.format("ERROR: Could not get request when asset spawned! FF investigate!"))
end
end end
end end