PaperMC/paper-server/nms-patches/net/minecraft/world/effect/MobEffects.patch

18 lines
580 B
Diff
Raw Normal View History

2021-03-15 23:00:00 +01:00
--- a/net/minecraft/world/effect/MobEffects.java
+++ b/net/minecraft/world/effect/MobEffects.java
@@ -69,6 +69,14 @@
return new MobEffect.a(22);
}));
+ // CraftBukkit start
+ static {
+ for (Object effect : IRegistry.MOB_EFFECT) {
+ org.bukkit.potion.PotionEffectType.registerPotionEffectType(new org.bukkit.craftbukkit.potion.CraftPotionEffectType((MobEffectList) effect));
+ }
+ }
+ // CraftBukkit end
+
public MobEffects() {}
private static MobEffectList register(int i, String s, MobEffectList mobeffectlist) {