[Patcher > Base] Fix calling original in instead

pull/70/head
Oj 2 years ago
parent 333d73f92f
commit 669e5cb43f

@ -37,7 +37,7 @@ const beforePatches = (context, args, id, functionName, keyName) => {
const insteadPatches = (context, newArgs, originalFunc, id, functionName, keyName) => {
const patches = modIndex[id][keyName].instead;
if (patches.length === 0) return originalFunc.apply(originalFunc, newArgs);
if (patches.length === 0) return originalFunc.apply(context, newArgs);
let newReturnValue = undefined;

Loading…
Cancel
Save