Fix item.interact hook not passing the correct parameters

This commit is contained in:
peelz
2022-08-04 15:43:39 -04:00
parent 33a29741df
commit 4e41d5c4fb

View File

@@ -8,7 +8,7 @@ Hook.Patch(
"System.Boolean"
},
function(instance, p)
if Hook.Call("item.interact", instance, p["picker"], p["ignoreRequiredItems"], p["forceSelectKey"], p["forceActionKey"]) == true then
if Hook.Call("item.interact", instance, p["user"], p["ignoreRequiredItems"], p["forceSelectKey"], p["forceUseKey"]) == true then
p.PreventExecution = true
return false
end