From af1f88cbe0d9584217565b134ef9452472f17416 Mon Sep 17 00:00:00 2001 From: 1Lighty Date: Mon, 5 Oct 2020 21:05:14 +0200 Subject: [PATCH] fix BBD causing loading bugs on missing lib --- Plugins/1XenoLib.plugin.js | 3 ++- Plugins/BetterImageViewer/BetterImageViewer.plugin.js | 3 ++- Plugins/BetterTypingUsers/BetterTypingUsers.plugin.js | 3 ++- .../BetterUnavailableGuilds/BetterUnavailableGuilds.plugin.js | 3 ++- Plugins/CrashRecovery/CrashRecovery.plugin.js | 3 ++- Plugins/InAppNotifications/InAppNotifications.plugin.js | 3 ++- Plugins/MessageLoggerV2/MessageLoggerV2.plugin.js | 2 +- Plugins/SaveToRedux/SaveToRedux.plugin.js | 3 ++- Plugins/UnreadBadgesRedux/UnreadBadgesRedux.plugin.js | 3 ++- 9 files changed, 17 insertions(+), 9 deletions(-) diff --git a/Plugins/1XenoLib.plugin.js b/Plugins/1XenoLib.plugin.js index 5a75fc4..72db563 100644 --- a/Plugins/1XenoLib.plugin.js +++ b/Plugins/1XenoLib.plugin.js @@ -1747,7 +1747,7 @@ module.exports = (() => { 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]), 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) { console.error('Error checking if ZeresPluginLibrary is out of date', e); @@ -1771,6 +1771,7 @@ module.exports = (() => { getDescription() { return this.description + ' You are missing ZeresPluginLibrary for this plugin, please enable the plugin and click Download Now.'; } + start() {} stop() {} handleMissingLib() { const a = BdApi.findModuleByProps('openModal', 'hasModalOpen'); diff --git a/Plugins/BetterImageViewer/BetterImageViewer.plugin.js b/Plugins/BetterImageViewer/BetterImageViewer.plugin.js index 16d05e9..7fbfb33 100644 --- a/Plugins/BetterImageViewer/BetterImageViewer.plugin.js +++ b/Plugins/BetterImageViewer/BetterImageViewer.plugin.js @@ -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), e = BdApi.getPlugin('ZeresPluginLibrary'), 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) { console.error('Error checking if libraries are out of date', i); @@ -2031,6 +2031,7 @@ module.exports = (() => { getDescription() { return this.description + ' You are missing libraries for this plugin, please enable the plugin and click Download Now.'; } + start() {} stop() {} handleMissingLib() { const a = BdApi.findModuleByProps('openModal', 'hasModalOpen'); diff --git a/Plugins/BetterTypingUsers/BetterTypingUsers.plugin.js b/Plugins/BetterTypingUsers/BetterTypingUsers.plugin.js index 1c04cd0..d55e543 100644 --- a/Plugins/BetterTypingUsers/BetterTypingUsers.plugin.js +++ b/Plugins/BetterTypingUsers/BetterTypingUsers.plugin.js @@ -333,7 +333,7 @@ module.exports = (() => { 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]), 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) { console.error('Error checking if ZeresPluginLibrary is out of date', e); @@ -357,6 +357,7 @@ module.exports = (() => { getDescription() { return this.description + ' You are missing ZeresPluginLibrary for this plugin, please enable the plugin and click Download Now.'; } + start() {} stop() {} handleMissingLib() { const a = BdApi.findModuleByProps('openModal', 'hasModalOpen'); diff --git a/Plugins/BetterUnavailableGuilds/BetterUnavailableGuilds.plugin.js b/Plugins/BetterUnavailableGuilds/BetterUnavailableGuilds.plugin.js index 67fdcb2..0095279 100644 --- a/Plugins/BetterUnavailableGuilds/BetterUnavailableGuilds.plugin.js +++ b/Plugins/BetterUnavailableGuilds/BetterUnavailableGuilds.plugin.js @@ -392,7 +392,7 @@ module.exports = (() => { 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]), 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) { console.error('Error checking if ZeresPluginLibrary is out of date', e); @@ -416,6 +416,7 @@ module.exports = (() => { getDescription() { return this.description + ' You are missing ZeresPluginLibrary for this plugin, please enable the plugin and click Download Now.'; } + start() {} stop() {} handleMissingLib() { const a = BdApi.findModuleByProps('openModal', 'hasModalOpen'); diff --git a/Plugins/CrashRecovery/CrashRecovery.plugin.js b/Plugins/CrashRecovery/CrashRecovery.plugin.js index 996aacc..4a477b1 100644 --- a/Plugins/CrashRecovery/CrashRecovery.plugin.js +++ b/Plugins/CrashRecovery/CrashRecovery.plugin.js @@ -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), e = BdApi.getPlugin('ZeresPluginLibrary'), 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) { console.error('Error checking if libraries are out of date', i); @@ -402,6 +402,7 @@ module.exports = (() => { getDescription() { return this.description + ' You are missing libraries for this plugin, please enable the plugin and click Download Now.'; } + start() {} stop() {} handleMissingLib() { const a = BdApi.findModuleByProps('openModal', 'hasModalOpen'); diff --git a/Plugins/InAppNotifications/InAppNotifications.plugin.js b/Plugins/InAppNotifications/InAppNotifications.plugin.js index 6060e17..975d411 100644 --- a/Plugins/InAppNotifications/InAppNotifications.plugin.js +++ b/Plugins/InAppNotifications/InAppNotifications.plugin.js @@ -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), e = BdApi.getPlugin('ZeresPluginLibrary'), 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) { console.error('Error checking if libraries are out of date', i); @@ -480,6 +480,7 @@ module.exports = (() => { getDescription() { return this.description + ' You are missing libraries for this plugin, please enable the plugin and click Download Now.'; } + start() {} stop() {} handleMissingLib() { const a = BdApi.findModuleByProps('openModal', 'hasModalOpen'); diff --git a/Plugins/MessageLoggerV2/MessageLoggerV2.plugin.js b/Plugins/MessageLoggerV2/MessageLoggerV2.plugin.js index f0d4f99..b805936 100644 --- a/Plugins/MessageLoggerV2/MessageLoggerV2.plugin.js +++ b/Plugins/MessageLoggerV2/MessageLoggerV2.plugin.js @@ -60,7 +60,7 @@ module.exports = class MessageLoggerV2 { const iXenoLib = BdApi.Plugins.get('XenoLib'); const iZeresPluginLibrary = BdApi.Plugins.get('ZeresPluginLibrary'); 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) { diff --git a/Plugins/SaveToRedux/SaveToRedux.plugin.js b/Plugins/SaveToRedux/SaveToRedux.plugin.js index f8dde6c..3fdb3ab 100644 --- a/Plugins/SaveToRedux/SaveToRedux.plugin.js +++ b/Plugins/SaveToRedux/SaveToRedux.plugin.js @@ -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), e = BdApi.getPlugin('ZeresPluginLibrary'), 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) { console.error('Error checking if libraries are out of date', i); @@ -1296,6 +1296,7 @@ module.exports = (() => { getDescription() { return this.description + ' You are missing libraries for this plugin, please enable the plugin and click Download Now.'; } + start() { } stop() { } handleMissingLib() { const a = BdApi.findModuleByProps('openModal', 'hasModalOpen'); diff --git a/Plugins/UnreadBadgesRedux/UnreadBadgesRedux.plugin.js b/Plugins/UnreadBadgesRedux/UnreadBadgesRedux.plugin.js index 1d592ea..70ad480 100644 --- a/Plugins/UnreadBadgesRedux/UnreadBadgesRedux.plugin.js +++ b/Plugins/UnreadBadgesRedux/UnreadBadgesRedux.plugin.js @@ -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), e = BdApi.getPlugin('ZeresPluginLibrary'), 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) { console.error('Error checking if libraries are out of date', i); @@ -618,6 +618,7 @@ module.exports = (() => { getDescription() { return this.description + ' You are missing libraries for this plugin, please enable the plugin and click Download Now.'; } + start() {} stop() {} handleMissingLib() { const a = BdApi.findModuleByProps('openModal', 'hasModalOpen');