Modified Mod.info and debug prints

This commit is contained in:
Pao
2023-02-26 22:16:45 +01:00
parent 3e064dc8cb
commit b195c92466

View File

@@ -3,7 +3,7 @@ local function AddBodyLocationBefore(new_location, move_to_location)
local list = getClassFieldVal(group, getClassField(group, 1)) local list = getClassFieldVal(group, getClassField(group, 1))
group:getOrCreateLocation(new_location) group:getOrCreateLocation(new_location)
local new_item = list:get(list:size()-1) local new_item = list:get(list:size()-1)
print("TOC: Created new body location" .. new_item:getId()) print("JCIO: Created new body location" .. new_item:getId())
list:remove(new_item) -- We can't use the Index, it works if we pass the item though! 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) local i = group:indexOf(move_to_location)
list:add(i, new_item) list:add(i, new_item)