mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
8b26bb8f3e
By: md_5 <git@md-5.net>
14 lines
708 B
Diff
14 lines
708 B
Diff
--- a/net/minecraft/world/effect/MobEffects.java
|
|
+++ b/net/minecraft/world/effect/MobEffects.java
|
|
@@ -73,6 +73,10 @@
|
|
public MobEffects() {}
|
|
|
|
private static MobEffectList register(int i, String s, MobEffectList mobeffectlist) {
|
|
- return (MobEffectList) IRegistry.registerMapping(BuiltInRegistries.MOB_EFFECT, i, s, mobeffectlist);
|
|
+ // CraftBukkit start
|
|
+ mobeffectlist = (MobEffectList) IRegistry.registerMapping(BuiltInRegistries.MOB_EFFECT, i, s, mobeffectlist);
|
|
+ org.bukkit.potion.PotionEffectType.registerPotionEffectType(new org.bukkit.craftbukkit.potion.CraftPotionEffectType(mobeffectlist));
|
|
+ return mobeffectlist;
|
|
+ // CraftBukkit end
|
|
}
|
|
}
|