geforkt von Mirrors/Paper
8a3c8cfcd4
By: md_5 <git@md-5.net>
15 Zeilen
681 B
Diff
15 Zeilen
681 B
Diff
--- a/net/minecraft/world/effect/MobEffects.java
|
|
+++ b/net/minecraft/world/effect/MobEffects.java
|
|
@@ -47,6 +47,10 @@
|
|
public MobEffects() {}
|
|
|
|
private static MobEffectList register(String s, MobEffectList mobeffectlist) {
|
|
- return (MobEffectList) IRegistry.register(BuiltInRegistries.MOB_EFFECT, s, mobeffectlist);
|
|
+ // CraftBukkit start
|
|
+ mobeffectlist = (MobEffectList) IRegistry.register(BuiltInRegistries.MOB_EFFECT, s, mobeffectlist);
|
|
+ org.bukkit.potion.PotionEffectType.registerPotionEffectType(new org.bukkit.craftbukkit.potion.CraftPotionEffectType(mobeffectlist));
|
|
+ return mobeffectlist;
|
|
+ // CraftBukkit end
|
|
}
|
|
}
|