fix: bodyloc for b42 mp

This commit is contained in:
ZioPao
2025-12-14 10:39:28 +01:00
parent be4588fc43
commit 3f888e7f22
2 changed files with 1 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ local list = customGetVal(group, 1)
function BodyLocationsAPI.New(bodyLoc)
local curItem
if StaticData.COMPAT_42 then
curItem = BodyLocation.new(group, bodyLoc) -- create new item
curItem = group:getOrCreateLocation(bodyLoc) -- get current item - or create
group:getAllLocations():add(curItem) -- add to the list
else
curItem = group:getOrCreateLocation(bodyLoc) -- get current item - or create