fix test issue

This commit is contained in:
alexcrea 2026-07-11 13:56:29 +02:00
parent ae28c64647
commit 52a58acd28
Signed by: alexcrea
GPG key ID: E59DF23EE2A2266C
5 changed files with 6 additions and 3 deletions

View file

@ -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)