Fix instanceItem, oops

This commit is contained in:
ZioPao
2025-01-04 21:00:39 +01:00
parent 1ded7f976c
commit 736d527a13
5 changed files with 14 additions and 13 deletions

View File

@@ -128,14 +128,14 @@ local og_ISClothingExtraAction_isValid = ISClothingExtraAction.isValid
function ISClothingExtraAction:isValid()
local isEquippable = og_ISClothingExtraAction_isValid(self)
-- self.extra is a string, not the item
local testItem = instanceItem.CreateItem(self.extra)
local testItem = instanceItem(self.extra)
return HandleProsthesisValidation(testItem, isEquippable)
end
local og_ISClothingExtraAction_perform = ISClothingExtraAction.perform
function ISClothingExtraAction:perform()
local extraItem = instanceItem.CreateItem(self.extra)
local extraItem = instanceItem(self.extra)
ProsthesisHandler.SearchAndSetupProsthesis(extraItem, true)
og_ISClothingExtraAction_perform(self)
end