isaacscript-common 15.3.4 → 15.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 15.3.
|
|
3
|
+
isaacscript-common 15.3.5
|
|
4
4
|
|
|
5
5
|
This is the "isaacscript-common" library, which was created with the IsaacScript tool.
|
|
6
6
|
|
|
@@ -48410,7 +48410,7 @@ end
|
|
|
48410
48410
|
function addCallback(self, modFeature, modFeatureConstructor, mod, modCallback, callback, parameters, vanilla)
|
|
48411
48411
|
local function wrappedCallback(____, ...)
|
|
48412
48412
|
local castedCallback = callback
|
|
48413
|
-
castedCallback(modFeature, ...)
|
|
48413
|
+
return castedCallback(modFeature, ...)
|
|
48414
48414
|
end
|
|
48415
48415
|
if vanilla then
|
|
48416
48416
|
local modCallbackVanilla = modCallback
|
|
@@ -64,7 +64,7 @@ end
|
|
|
64
64
|
function addCallback(self, modFeature, modFeatureConstructor, mod, modCallback, callback, parameters, vanilla)
|
|
65
65
|
local function wrappedCallback(____, ...)
|
|
66
66
|
local castedCallback = callback
|
|
67
|
-
castedCallback(modFeature, ...)
|
|
67
|
+
return castedCallback(modFeature, ...)
|
|
68
68
|
end
|
|
69
69
|
if vanilla then
|
|
70
70
|
local modCallbackVanilla = modCallback
|
package/package.json
CHANGED
|
@@ -199,7 +199,7 @@ function addCallback(
|
|
|
199
199
|
this: void,
|
|
200
200
|
...args: unknown[]
|
|
201
201
|
) => unknown;
|
|
202
|
-
castedCallback(modFeature, ...callbackArgs);
|
|
202
|
+
return castedCallback(modFeature, ...callbackArgs);
|
|
203
203
|
};
|
|
204
204
|
|
|
205
205
|
// We need to save the wrapped function for later (so we can unregister them).
|