More fixes for debug cheats

This commit is contained in:
Pao
2023-01-13 16:36:03 +01:00
parent 06bc050ebc
commit 8429164c72
2 changed files with 54 additions and 15 deletions

View File

@@ -11,9 +11,11 @@ function ResetEverything()
local cloth = player:getInventory():FindAndReturn(find_clothName2_TOC(v))
if cloth ~= nil then
print("Resetting " .. cloth:getName())
player:removeWornItem(cloth)
player:getInventory():Remove(cloth:getName())
player:getInventory():Remove(cloth)
end
cloth = nil -- reset it
end