Added debug print func

This commit is contained in:
ZioPao
2023-11-12 05:58:45 +01:00
parent 3d963a2ad6
commit 52a4798377
7 changed files with 16 additions and 8 deletions

View File

@@ -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)