Update CTLD.lua

Added  self:_RefreshDropCratesMenu(Group, Unit) to  function CTLD:_LoadCratesNearby(Group, Unit)
This commit is contained in:
leka1986 2025-02-09 11:26:38 +01:00 committed by GitHub
parent 0d438a9452
commit 693c2a730f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3193,6 +3193,7 @@ function CTLD:_LoadCratesNearby(Group, Unit)
end end
self.Loaded_Cargo[unitname] = loaded self.Loaded_Cargo[unitname] = loaded
self:_UpdateUnitCargoMass(Unit) self:_UpdateUnitCargoMass(Unit)
self:_RefreshDropCratesMenu(Group, Unit)
-- clean up real world crates -- clean up real world crates
self:_CleanupTrackedCrates(crateidsloaded) self:_CleanupTrackedCrates(crateidsloaded)
end end