CTLD small fix of container shape

This commit is contained in:
Applevangelist 2024-08-27 18:37:21 +02:00
parent 30f2097d7a
commit d74de11b8b

View File

@ -1331,7 +1331,7 @@ CTLD.UnitTypeCapabilities = {
--- CTLD class version. --- CTLD class version.
-- @field #string version -- @field #string version
CTLD.version="1.1.15" CTLD.version="1.1.16"
--- Instantiate a new CTLD. --- Instantiate a new CTLD.
-- @param #CTLD self -- @param #CTLD self
@ -4272,6 +4272,7 @@ function CTLD:AddCratesCargo(Name,Templates,Type,NoCrates,PerCrateMass,Stock,Sub
if UnitTypes then if UnitTypes then
cargo:AddUnitTypeName(UnitTypes) cargo:AddUnitTypeName(UnitTypes)
end end
cargo:SetStaticTypeAndShape("Cargos",self.basetype)
if TypeName then if TypeName then
cargo:SetStaticTypeAndShape(Category,TypeName,ShapeName) cargo:SetStaticTypeAndShape(Category,TypeName,ShapeName)
end end
@ -4355,6 +4356,7 @@ function CTLD:AddCratesRepair(Name,Template,Type,NoCrates, PerCrateMass,Stock,Su
if UnitTypes then if UnitTypes then
cargo:AddUnitTypeName(UnitTypes) cargo:AddUnitTypeName(UnitTypes)
end end
cargo:SetStaticTypeAndShape("cargos",self.basetype)
if TypeName then if TypeName then
cargo:SetStaticTypeAndShape(Category,TypeName,ShapeName) cargo:SetStaticTypeAndShape(Category,TypeName,ShapeName)
end end