fix: bodyloc for b42 mp
This commit is contained in:
@@ -13,7 +13,7 @@ local list = customGetVal(group, 1)
|
|||||||
function BodyLocationsAPI.New(bodyLoc)
|
function BodyLocationsAPI.New(bodyLoc)
|
||||||
local curItem
|
local curItem
|
||||||
if StaticData.COMPAT_42 then
|
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
|
group:getAllLocations():add(curItem) -- add to the list
|
||||||
else
|
else
|
||||||
curItem = group:getOrCreateLocation(bodyLoc) -- get current item - or create
|
curItem = group:getOrCreateLocation(bodyLoc) -- get current item - or create
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ local StaticData = {}
|
|||||||
StaticData.MOD_NAME = "TOC"
|
StaticData.MOD_NAME = "TOC"
|
||||||
|
|
||||||
-- Game version, used to correct some stuff instead of relying on versioned folders
|
-- Game version, used to correct some stuff instead of relying on versioned folders
|
||||||
|
|
||||||
StaticData.COMPAT_42 = luautils.stringStarts(getGameVersion(), "42")
|
StaticData.COMPAT_42 = luautils.stringStarts(getGameVersion(), "42")
|
||||||
|
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user