Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2022-10-13 12:48:15 +02:00
parent 6515f044f3
commit 6f842d9031
1 changed files with 1 additions and 0 deletions

View File

@ -2164,6 +2164,7 @@ module.exports = (_ => {
if (!PluginStores.modulePatches[patchType][type]) PluginStores.modulePatches[patchType][type] = [];
if (!PluginStores.modulePatches[patchType][type][patchPriority]) PluginStores.modulePatches[patchType][type][patchPriority] = [];
PluginStores.modulePatches[patchType][type][patchPriority].push(plugin);
if (PluginStores.modulePatches[patchType][type][patchPriority].length > 1) PluginStores.modulePatches[patchType][type][patchPriority] = BDFDB.ArrayUtils.keySort(PluginStores.modulePatches[patchType][type][patchPriority], "name");
}
else BDFDB.LogUtils.warn(`[${type}] not found in PatchModules InternalData`, plugin);
}