Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2024-04-09 18:06:01 +02:00
parent 56bb7fd493
commit a2fab456d1
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
* @name BDFDB
* @author DevilBro
* @authorId 278543574059057154
* @version 3.6.3
* @version 3.6.4
* @description Required Library for DevilBro's Plugins
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -1455,7 +1455,7 @@ module.exports = (_ => {
Internal.LibraryStores = new Proxy(LibraryStores, {
get: function (_, item) {
if (LibraryStores[item]) return LibraryStores[item];
LibraryStores[item] = BDFDB.ModuleUtils.find(m => m && typeof m.getName == "function" && m.getName() == item && m);
LibraryStores[item] = BDFDB.ModuleUtils.find(m => m && m.constructor && typeof m.constructor.displayName == "string" && m.constructor.displayName == item && m);
if (!LibraryStores[item]) BDFDB.LogUtils.warn([item, "could not be found in Webmodule Stores"]);
return LibraryStores[item] ? LibraryStores[item] : null;
}