stuff
This commit is contained in:
parent
02fdc8c4f8
commit
1591e324bb
|
@ -24,6 +24,7 @@
|
||||||
};
|
};
|
||||||
const InternalBDFDB = {
|
const InternalBDFDB = {
|
||||||
name: "BDFDB",
|
name: "BDFDB",
|
||||||
|
started: true,
|
||||||
patchPriority: 0
|
patchPriority: 0
|
||||||
};
|
};
|
||||||
const loadId = Math.round(Math.random() * 10000000000000000), myId = "278543574059057154", myGuildId = "410787888507256842";
|
const loadId = Math.round(Math.random() * 10000000000000000), myId = "278543574059057154", myGuildId = "410787888507256842";
|
||||||
|
@ -1334,7 +1335,7 @@
|
||||||
for (let type in patchMethods) if (typeof patchMethods[type] == "function") {
|
for (let type in patchMethods) if (typeof patchMethods[type] == "function") {
|
||||||
if (!BDFDB.ObjectUtils.is(module.BDFDBpatch[methodName][type][patchPriority])) module.BDFDBpatch[methodName][type][patchPriority] = {};
|
if (!BDFDB.ObjectUtils.is(module.BDFDBpatch[methodName][type][patchPriority])) module.BDFDBpatch[methodName][type][patchPriority] = {};
|
||||||
module.BDFDBpatch[methodName][type][patchPriority][pluginId] = (...args) => {
|
module.BDFDBpatch[methodName][type][patchPriority][pluginId] = (...args) => {
|
||||||
if (config.once) cancel();
|
if (config.once || !plugin.started) cancel();
|
||||||
return patchMethods[type](...args);
|
return patchMethods[type](...args);
|
||||||
};
|
};
|
||||||
module.BDFDBpatch[methodName][type][patchPriority][pluginId].pluginName = pluginName;
|
module.BDFDBpatch[methodName][type][patchPriority][pluginId].pluginName = pluginName;
|
||||||
|
@ -9784,7 +9785,7 @@
|
||||||
InternalComponents.LibraryComponents[component] = "div";
|
InternalComponents.LibraryComponents[component] = "div";
|
||||||
BDFDB.LibraryComponents[component] = "div";
|
BDFDB.LibraryComponents[component] = "div";
|
||||||
}
|
}
|
||||||
|
|
||||||
BDFDB.loaded = true;
|
BDFDB.loaded = true;
|
||||||
window.BDFDB = BDFDB;
|
window.BDFDB = BDFDB;
|
||||||
InternalBDFDB.reloadLib = _ => {
|
InternalBDFDB.reloadLib = _ => {
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue