Added debug print func
This commit is contained in:
@@ -5,7 +5,7 @@ local function AddBodyLocationBefore(newLocation, moveToLocation)
|
||||
local list = getClassFieldVal(group, getClassField(group, 1))
|
||||
group:getOrCreateLocation(newLocation)
|
||||
local newItem = list:get(list:size()-1)
|
||||
print("TOC: Created new body location" .. newItem:getId())
|
||||
TOC_DEBUG.print("created new body location" .. newItem:getId())
|
||||
list:remove(newItem) -- We can't use the Index, it works if we pass the item though!
|
||||
local i = group:indexOf(moveToLocation)
|
||||
list:add(i, newItem)
|
||||
|
||||
Reference in New Issue
Block a user