fix BBD causing loading bugs on missing lib
This commit is contained in:
parent
d9c2fe6ba4
commit
af1f88cbe0
|
@ -1747,7 +1747,7 @@ module.exports = (() => {
|
||||||
if (global.BdApi && 'function' == typeof BdApi.getPlugin) {
|
if (global.BdApi && 'function' == typeof BdApi.getPlugin) {
|
||||||
const a = (c, a) => ((c = c.split('.').map(b => parseInt(b))), (a = a.split('.').map(b => parseInt(b))), !!(a[0] > c[0])) || !!(a[0] == c[0] && a[1] > c[1]) || !!(a[0] == c[0] && a[1] == c[1] && a[2] > c[2]),
|
const a = (c, a) => ((c = c.split('.').map(b => parseInt(b))), (a = a.split('.').map(b => parseInt(b))), !!(a[0] > c[0])) || !!(a[0] == c[0] && a[1] > c[1]) || !!(a[0] == c[0] && a[1] == c[1] && a[2] > c[2]),
|
||||||
b = BdApi.getPlugin('ZeresPluginLibrary');
|
b = BdApi.getPlugin('ZeresPluginLibrary');
|
||||||
((b, c) => b && b._config && b._config.info && b._config.info.version && a(b._config.info.version, c))(b, '1.2.20') && (ZeresPluginLibraryOutdated = !0);
|
((b, c) => b && b._config && b._config.info && b._config.info.version && a(b._config.info.version, c))(b, '1.2.23') && (ZeresPluginLibraryOutdated = !0);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('Error checking if ZeresPluginLibrary is out of date', e);
|
console.error('Error checking if ZeresPluginLibrary is out of date', e);
|
||||||
|
@ -1771,6 +1771,7 @@ module.exports = (() => {
|
||||||
getDescription() {
|
getDescription() {
|
||||||
return this.description + ' You are missing ZeresPluginLibrary for this plugin, please enable the plugin and click Download Now.';
|
return this.description + ' You are missing ZeresPluginLibrary for this plugin, please enable the plugin and click Download Now.';
|
||||||
}
|
}
|
||||||
|
start() {}
|
||||||
stop() {}
|
stop() {}
|
||||||
handleMissingLib() {
|
handleMissingLib() {
|
||||||
const a = BdApi.findModuleByProps('openModal', 'hasModalOpen');
|
const a = BdApi.findModuleByProps('openModal', 'hasModalOpen');
|
||||||
|
|
|
@ -2007,7 +2007,7 @@ module.exports = (() => {
|
||||||
n = (n, e) => n && n._config && n._config.info && n._config.info.version && i(n._config.info.version, e),
|
n = (n, e) => n && n._config && n._config.info && n._config.info.version && i(n._config.info.version, e),
|
||||||
e = BdApi.getPlugin('ZeresPluginLibrary'),
|
e = BdApi.getPlugin('ZeresPluginLibrary'),
|
||||||
o = BdApi.getPlugin('XenoLib');
|
o = BdApi.getPlugin('XenoLib');
|
||||||
n(e, '1.2.14') && (ZeresPluginLibraryOutdated = !0), n(o, '1.3.17') && (XenoLibOutdated = !0);
|
n(e, '1.2.23') && (ZeresPluginLibraryOutdated = !0), n(o, '1.3.26') && (XenoLibOutdated = !0);
|
||||||
}
|
}
|
||||||
} catch (i) {
|
} catch (i) {
|
||||||
console.error('Error checking if libraries are out of date', i);
|
console.error('Error checking if libraries are out of date', i);
|
||||||
|
@ -2031,6 +2031,7 @@ module.exports = (() => {
|
||||||
getDescription() {
|
getDescription() {
|
||||||
return this.description + ' You are missing libraries for this plugin, please enable the plugin and click Download Now.';
|
return this.description + ' You are missing libraries for this plugin, please enable the plugin and click Download Now.';
|
||||||
}
|
}
|
||||||
|
start() {}
|
||||||
stop() {}
|
stop() {}
|
||||||
handleMissingLib() {
|
handleMissingLib() {
|
||||||
const a = BdApi.findModuleByProps('openModal', 'hasModalOpen');
|
const a = BdApi.findModuleByProps('openModal', 'hasModalOpen');
|
||||||
|
|
|
@ -333,7 +333,7 @@ module.exports = (() => {
|
||||||
if (global.BdApi && 'function' == typeof BdApi.getPlugin) {
|
if (global.BdApi && 'function' == typeof BdApi.getPlugin) {
|
||||||
const a = (c, a) => ((c = c.split('.').map(b => parseInt(b))), (a = a.split('.').map(b => parseInt(b))), !!(a[0] > c[0])) || !!(a[0] == c[0] && a[1] > c[1]) || !!(a[0] == c[0] && a[1] == c[1] && a[2] > c[2]),
|
const a = (c, a) => ((c = c.split('.').map(b => parseInt(b))), (a = a.split('.').map(b => parseInt(b))), !!(a[0] > c[0])) || !!(a[0] == c[0] && a[1] > c[1]) || !!(a[0] == c[0] && a[1] == c[1] && a[2] > c[2]),
|
||||||
b = BdApi.getPlugin('ZeresPluginLibrary');
|
b = BdApi.getPlugin('ZeresPluginLibrary');
|
||||||
((b, c) => b && b._config && b._config.info && b._config.info.version && a(b._config.info.version, c))(b, '1.2.14') && (ZeresPluginLibraryOutdated = !0);
|
((b, c) => b && b._config && b._config.info && b._config.info.version && a(b._config.info.version, c))(b, '1.2.23') && (ZeresPluginLibraryOutdated = !0);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('Error checking if ZeresPluginLibrary is out of date', e);
|
console.error('Error checking if ZeresPluginLibrary is out of date', e);
|
||||||
|
@ -357,6 +357,7 @@ module.exports = (() => {
|
||||||
getDescription() {
|
getDescription() {
|
||||||
return this.description + ' You are missing ZeresPluginLibrary for this plugin, please enable the plugin and click Download Now.';
|
return this.description + ' You are missing ZeresPluginLibrary for this plugin, please enable the plugin and click Download Now.';
|
||||||
}
|
}
|
||||||
|
start() {}
|
||||||
stop() {}
|
stop() {}
|
||||||
handleMissingLib() {
|
handleMissingLib() {
|
||||||
const a = BdApi.findModuleByProps('openModal', 'hasModalOpen');
|
const a = BdApi.findModuleByProps('openModal', 'hasModalOpen');
|
||||||
|
|
|
@ -392,7 +392,7 @@ module.exports = (() => {
|
||||||
if (global.BdApi && 'function' == typeof BdApi.getPlugin) {
|
if (global.BdApi && 'function' == typeof BdApi.getPlugin) {
|
||||||
const a = (c, a) => ((c = c.split('.').map(b => parseInt(b))), (a = a.split('.').map(b => parseInt(b))), !!(a[0] > c[0])) || !!(a[0] == c[0] && a[1] > c[1]) || !!(a[0] == c[0] && a[1] == c[1] && a[2] > c[2]),
|
const a = (c, a) => ((c = c.split('.').map(b => parseInt(b))), (a = a.split('.').map(b => parseInt(b))), !!(a[0] > c[0])) || !!(a[0] == c[0] && a[1] > c[1]) || !!(a[0] == c[0] && a[1] == c[1] && a[2] > c[2]),
|
||||||
b = BdApi.getPlugin('ZeresPluginLibrary');
|
b = BdApi.getPlugin('ZeresPluginLibrary');
|
||||||
((b, c) => b && b._config && b._config.info && b._config.info.version && a(b._config.info.version, c))(b, '1.2.21') && (ZeresPluginLibraryOutdated = !0);
|
((b, c) => b && b._config && b._config.info && b._config.info.version && a(b._config.info.version, c))(b, '1.2.23') && (ZeresPluginLibraryOutdated = !0);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('Error checking if ZeresPluginLibrary is out of date', e);
|
console.error('Error checking if ZeresPluginLibrary is out of date', e);
|
||||||
|
@ -416,6 +416,7 @@ module.exports = (() => {
|
||||||
getDescription() {
|
getDescription() {
|
||||||
return this.description + ' You are missing ZeresPluginLibrary for this plugin, please enable the plugin and click Download Now.';
|
return this.description + ' You are missing ZeresPluginLibrary for this plugin, please enable the plugin and click Download Now.';
|
||||||
}
|
}
|
||||||
|
start() {}
|
||||||
stop() {}
|
stop() {}
|
||||||
handleMissingLib() {
|
handleMissingLib() {
|
||||||
const a = BdApi.findModuleByProps('openModal', 'hasModalOpen');
|
const a = BdApi.findModuleByProps('openModal', 'hasModalOpen');
|
||||||
|
|
|
@ -378,7 +378,7 @@ module.exports = (() => {
|
||||||
n = (n, e) => n && n._config && n._config.info && n._config.info.version && i(n._config.info.version, e),
|
n = (n, e) => n && n._config && n._config.info && n._config.info.version && i(n._config.info.version, e),
|
||||||
e = BdApi.getPlugin('ZeresPluginLibrary'),
|
e = BdApi.getPlugin('ZeresPluginLibrary'),
|
||||||
o = BdApi.getPlugin('XenoLib');
|
o = BdApi.getPlugin('XenoLib');
|
||||||
n(e, '1.2.14') && (ZeresPluginLibraryOutdated = !0), n(o, '1.3.17') && (XenoLibOutdated = !0);
|
n(e, '1.2.23') && (ZeresPluginLibraryOutdated = !0), n(o, '1.3.26') && (XenoLibOutdated = !0);
|
||||||
}
|
}
|
||||||
} catch (i) {
|
} catch (i) {
|
||||||
console.error('Error checking if libraries are out of date', i);
|
console.error('Error checking if libraries are out of date', i);
|
||||||
|
@ -402,6 +402,7 @@ module.exports = (() => {
|
||||||
getDescription() {
|
getDescription() {
|
||||||
return this.description + ' You are missing libraries for this plugin, please enable the plugin and click Download Now.';
|
return this.description + ' You are missing libraries for this plugin, please enable the plugin and click Download Now.';
|
||||||
}
|
}
|
||||||
|
start() {}
|
||||||
stop() {}
|
stop() {}
|
||||||
handleMissingLib() {
|
handleMissingLib() {
|
||||||
const a = BdApi.findModuleByProps('openModal', 'hasModalOpen');
|
const a = BdApi.findModuleByProps('openModal', 'hasModalOpen');
|
||||||
|
|
|
@ -456,7 +456,7 @@ module.exports = (() => {
|
||||||
n = (n, e) => n && n._config && n._config.info && n._config.info.version && i(n._config.info.version, e),
|
n = (n, e) => n && n._config && n._config.info && n._config.info.version && i(n._config.info.version, e),
|
||||||
e = BdApi.getPlugin('ZeresPluginLibrary'),
|
e = BdApi.getPlugin('ZeresPluginLibrary'),
|
||||||
o = BdApi.getPlugin('XenoLib');
|
o = BdApi.getPlugin('XenoLib');
|
||||||
n(e, '1.2.14') && (ZeresPluginLibraryOutdated = !0), n(o, '1.3.17') && (XenoLibOutdated = !0);
|
n(e, '1.2.23') && (ZeresPluginLibraryOutdated = !0), n(o, '1.3.26') && (XenoLibOutdated = !0);
|
||||||
}
|
}
|
||||||
} catch (i) {
|
} catch (i) {
|
||||||
console.error('Error checking if libraries are out of date', i);
|
console.error('Error checking if libraries are out of date', i);
|
||||||
|
@ -480,6 +480,7 @@ module.exports = (() => {
|
||||||
getDescription() {
|
getDescription() {
|
||||||
return this.description + ' You are missing libraries for this plugin, please enable the plugin and click Download Now.';
|
return this.description + ' You are missing libraries for this plugin, please enable the plugin and click Download Now.';
|
||||||
}
|
}
|
||||||
|
start() {}
|
||||||
stop() {}
|
stop() {}
|
||||||
handleMissingLib() {
|
handleMissingLib() {
|
||||||
const a = BdApi.findModuleByProps('openModal', 'hasModalOpen');
|
const a = BdApi.findModuleByProps('openModal', 'hasModalOpen');
|
||||||
|
|
|
@ -60,7 +60,7 @@ module.exports = class MessageLoggerV2 {
|
||||||
const iXenoLib = BdApi.Plugins.get('XenoLib');
|
const iXenoLib = BdApi.Plugins.get('XenoLib');
|
||||||
const iZeresPluginLibrary = BdApi.Plugins.get('ZeresPluginLibrary');
|
const iZeresPluginLibrary = BdApi.Plugins.get('ZeresPluginLibrary');
|
||||||
if (isOutOfDate(iXenoLib, '1.3.26')) XenoLibOutdated = true;
|
if (isOutOfDate(iXenoLib, '1.3.26')) XenoLibOutdated = true;
|
||||||
if (isOutOfDate(iZeresPluginLibrary, '1.2.21')) ZeresPluginLibraryOutdated = true;
|
if (isOutOfDate(iZeresPluginLibrary, '1.2.23')) ZeresPluginLibraryOutdated = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!global.XenoLib || !global.ZeresPluginLibrary || XenoLibOutdated || ZeresPluginLibraryOutdated) {
|
if (!global.XenoLib || !global.ZeresPluginLibrary || XenoLibOutdated || ZeresPluginLibraryOutdated) {
|
||||||
|
|
|
@ -1272,7 +1272,7 @@ module.exports = (() => {
|
||||||
n = (n, e) => n && n._config && n._config.info && n._config.info.version && i(n._config.info.version, e),
|
n = (n, e) => n && n._config && n._config.info && n._config.info.version && i(n._config.info.version, e),
|
||||||
e = BdApi.getPlugin('ZeresPluginLibrary'),
|
e = BdApi.getPlugin('ZeresPluginLibrary'),
|
||||||
o = BdApi.getPlugin('XenoLib');
|
o = BdApi.getPlugin('XenoLib');
|
||||||
n(e, '1.2.17') && (ZeresPluginLibraryOutdated = !0), n(o, '1.3.20') && (XenoLibOutdated = !0);
|
n(e, '1.2.23') && (ZeresPluginLibraryOutdated = !0), n(o, '1.3.26') && (XenoLibOutdated = !0);
|
||||||
}
|
}
|
||||||
} catch (i) {
|
} catch (i) {
|
||||||
console.error('Error checking if libraries are out of date', i);
|
console.error('Error checking if libraries are out of date', i);
|
||||||
|
@ -1296,6 +1296,7 @@ module.exports = (() => {
|
||||||
getDescription() {
|
getDescription() {
|
||||||
return this.description + ' You are missing libraries for this plugin, please enable the plugin and click Download Now.';
|
return this.description + ' You are missing libraries for this plugin, please enable the plugin and click Download Now.';
|
||||||
}
|
}
|
||||||
|
start() { }
|
||||||
stop() { }
|
stop() { }
|
||||||
handleMissingLib() {
|
handleMissingLib() {
|
||||||
const a = BdApi.findModuleByProps('openModal', 'hasModalOpen');
|
const a = BdApi.findModuleByProps('openModal', 'hasModalOpen');
|
||||||
|
|
|
@ -594,7 +594,7 @@ module.exports = (() => {
|
||||||
n = (n, e) => n && n._config && n._config.info && n._config.info.version && i(n._config.info.version, e),
|
n = (n, e) => n && n._config && n._config.info && n._config.info.version && i(n._config.info.version, e),
|
||||||
e = BdApi.getPlugin('ZeresPluginLibrary'),
|
e = BdApi.getPlugin('ZeresPluginLibrary'),
|
||||||
o = BdApi.getPlugin('XenoLib');
|
o = BdApi.getPlugin('XenoLib');
|
||||||
n(e, '1.2.14') && (ZeresPluginLibraryOutdated = !0), n(o, '1.3.17') && (XenoLibOutdated = !0);
|
n(e, '1.2.23') && (ZeresPluginLibraryOutdated = !0), n(o, '1.3.26') && (XenoLibOutdated = !0);
|
||||||
}
|
}
|
||||||
} catch (i) {
|
} catch (i) {
|
||||||
console.error('Error checking if libraries are out of date', i);
|
console.error('Error checking if libraries are out of date', i);
|
||||||
|
@ -618,6 +618,7 @@ module.exports = (() => {
|
||||||
getDescription() {
|
getDescription() {
|
||||||
return this.description + ' You are missing libraries for this plugin, please enable the plugin and click Download Now.';
|
return this.description + ' You are missing libraries for this plugin, please enable the plugin and click Download Now.';
|
||||||
}
|
}
|
||||||
|
start() {}
|
||||||
stop() {}
|
stop() {}
|
||||||
handleMissingLib() {
|
handleMissingLib() {
|
||||||
const a = BdApi.findModuleByProps('openModal', 'hasModalOpen');
|
const a = BdApi.findModuleByProps('openModal', 'hasModalOpen');
|
||||||
|
|
Loading…
Reference in New Issue