mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-25 22:43:00 +00:00
Update Warehouse.lua
This commit is contained in:
@@ -6135,6 +6135,9 @@ function WAREHOUSE:_OnEventBirth(EventData)
|
||||
-- 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)))
|
||||
|
||||
if request then
|
||||
|
||||
|
||||
-- Birth is triggered for each unit. We need to make sure not to call this too often!
|
||||
if not asset.spawned then
|
||||
|
||||
@@ -6166,6 +6169,9 @@ function WAREHOUSE:_OnEventBirth(EventData)
|
||||
else
|
||||
--self:T3({wid=wid, uid=self.uid, match=(wid==self.uid), tw=type(wid), tu=type(self.uid)})
|
||||
end
|
||||
else
|
||||
self:E(self.lid..string.format("ERROR: Could not get request when asset spawned! FF investigate!"))
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user