Skip to content

Commit 1d6615d

Browse files
committed
✨ Add 5.0 install warning
1 parent 3b8e7e6 commit 1d6615d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,15 @@ EVENTS.EXTRACT_MODS.subscribe(() => {
119119
delete window.AnimatedJava
120120
})
121121

122+
if (!compareVersions('5.0.0', Blockbench.version) /* >= 5.0.0 */) {
123+
Blockbench.showMessageBox({
124+
title: 'Animated Java - Incompatible Blockbench Version',
125+
message: `Animated Java is incompatible with Blockbench versions above 5.0.0. Please downgrade to Blockbench 4.21.6 to continue using this plugin.`,
126+
buttons: ['OK'],
127+
})
128+
throw new Error('Incompatible Blockbench Version')
129+
}
130+
122131
BBPlugin.register(PACKAGE.name, {
123132
title: PACKAGE.title,
124133
author: PACKAGE.author.name,

0 commit comments

Comments
 (0)