Merge branch 'master' into modular_prosthetics
This commit is contained in:
@@ -4,7 +4,7 @@ local function addBodyLocationBefore(new_location, move_to_location)
|
||||
group:getOrCreateLocation(new_location)
|
||||
local new_item = list:get(list:size()-1)
|
||||
print("TOC: Created new body location" .. new_item:getId())
|
||||
list:remove(new_item)
|
||||
list:remove(new_item) -- We can't use the Index, it works if we pass the item though!
|
||||
local i = group:indexOf(move_to_location)
|
||||
list:add(i, new_item)
|
||||
end
|
||||
@@ -20,4 +20,4 @@ addBodyLocationBefore("TOC_ArmRightProsthesis", "Shoes")
|
||||
addBodyLocationBefore("TOC_ArmLeftProsthesis", "Shoes")
|
||||
|
||||
addBodyLocationBefore("TOC_LegRightProsthesis", "Shoes")
|
||||
addBodyLocationBefore("TOC_LegLeftProsthesis", "Shoes")
|
||||
addBodyLocationBefore("TOC_LegLeftProsthesis", "Shoes")
|
||||
|
||||
Reference in New Issue
Block a user