fix: bodyloc for b42 mp
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -22,7 +22,6 @@ local StaticData = {}
|
||||
StaticData.MOD_NAME = "TOC"
|
||||
|
||||
-- Game version, used to correct some stuff instead of relying on versioned folders
|
||||
|
||||
StaticData.COMPAT_42 = luautils.stringStarts(getGameVersion(), "42")
|
||||
|
||||
-------------------------
|
||||
|
||||
Reference in New Issue
Block a user