Fix the wrong potion meta provider being used on 1.8.8 (#6047)

This commit is contained in:
MD 2025-02-15 16:30:13 +00:00 committed by GitHub
parent cb00783ede
commit 69ed07a536
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -135,9 +135,9 @@ public class LegacyPotionMetaProvider implements PotionMetaProvider {
try {
// This provider was created to support the new PotionData API introduced in 1.9
Class.forName("org.bukkit.potion.PotionData");
return false;
} catch (final Throwable ignored) {
return true;
} catch (final Throwable ignored) {
return false;
}
}
}