Update CTLD.lua

Removed the block from partly drop 1. 

It's not helpful for the user to have 1 incomplete a set of crates onboard. 
With this line removed, If someone loads 2 items, and second item is not completed, due to crate limit or due weight, player can unload the uncomplete set.
This commit is contained in:
leka1986 2025-02-09 11:51:34 +01:00 committed by GitHub
parent fa0ce0927b
commit 5ad54648ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4397,10 +4397,6 @@ function CTLD:_UnloadSingleCrate(Group, Unit, CrateName)
table.insert(matched, cObj)
end
end
if #matched < needed then
self:_SendMessage(string.format("You only have %d of %d %s crates needed!", #matched, needed, CrateName), 10, false, Group)
return self
end
local crateToUse = matched[1]
self:_GetCrates(Group, Unit, crateToUse, needed, true)
local used = 0