We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1ef647 commit bfde275Copy full SHA for bfde275
1 file changed
modules/library/src/main/java/top/mrxiaom/pluginbase/utils/RegistryConverter.java
@@ -67,8 +67,14 @@ protected static void init() {
67
add(DamageType.class, Registry.DAMAGE_TYPE);
68
} catch (Throwable ignored) {}
69
try {
70
- add(PotionEffectType.class, Registry.EFFECT);
71
- } catch (Throwable ignored) {}
+ // Paper
+ add("org.bukkit.potion.PotionEffectType", "POTION_EFFECT_TYPE");
72
+ } catch (Throwable t) {
73
+ try {
74
+ add(PotionEffectType.class, Registry.EFFECT);
75
+ } catch (Throwable ignored) {
76
+ }
77
78
79
add(Enchantment.class, Registry.ENCHANTMENT);
80
0 commit comments