9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-30 20:39:13 +00:00

fix: improve nms version checker

This commit is contained in:
LoJoSho
2023-10-14 14:47:05 -05:00
parent 8ef6692198
commit e0b2f0f6b1
2 changed files with 8 additions and 1 deletions

View File

@@ -61,7 +61,7 @@ public final class HMCCosmeticsPlugin extends JavaPlugin {
Metrics metrics = new Metrics(this, pluginId);
// NMS version check
if (!NMSHandlers.getHandler().getSupported()) {
if (NMSHandlers.isVersionSupported()) {
getLogger().severe("This version is not supported! Consider switching versions?");
getServer().getPluginManager().disablePlugin(this);
return;