mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-08-28 08:25:56 +02:00
fix test issue
This commit is contained in:
parent
ae28c64647
commit
52a58acd28
5 changed files with 6 additions and 3 deletions
|
|
@ -204,7 +204,8 @@ open class CustomAnvil : JavaPlugin() {
|
|||
|
||||
private fun legacyCheck() {
|
||||
val currentVersion = UpdateUtils.currentMinecraftVersion()
|
||||
if (currentVersion.greaterEqual(Version(1, 21, 0))) {
|
||||
if (currentVersion.greaterEqual(Version(1, 21, 0))
|
||||
&& !DependencyManager.inTesting) {
|
||||
logger.warning("You are running a Minecraft version above or equal to 1.21.0")
|
||||
logger.warning("Please use CustomAnvil v2 instead if you wish to use the plugin with this version.")
|
||||
Bukkit.getPluginManager().disablePlugin(this)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue