diff --git a/src/webpack/patchWebpack.ts b/src/webpack/patchWebpack.ts index bb0a4e026..5f5174446 100644 --- a/src/webpack/patchWebpack.ts +++ b/src/webpack/patchWebpack.ts @@ -211,7 +211,7 @@ function defineModulesFactoryGetter(id: PropertyKey, factory: WrappedModuleFacto factory.$$vencordOriginal = newFactory; if (factory.$$vencordPatchedSource != null) { - newFactory.$$vencordPatchedSource = newFactory.$$vencordPatchedSource; + newFactory.$$vencordPatchedSource = factory.$$vencordPatchedSource; } } else { factory = newFactory;