Fix item.interact hook not passing the correct parameters
This commit is contained in:
@@ -8,7 +8,7 @@ Hook.Patch(
|
|||||||
"System.Boolean"
|
"System.Boolean"
|
||||||
},
|
},
|
||||||
function(instance, p)
|
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
|
p.PreventExecution = true
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user