Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-23 14:50:08 +01:00
18 Zeilen
733 B
Diff
18 Zeilen
733 B
Diff
--- a/net/minecraft/server/MobEffects.java
|
|
+++ b/net/minecraft/server/MobEffects.java
|
|
@@ -57,6 +57,14 @@
|
|
});
|
|
public static final MobEffectList HERO_OF_THE_VILLAGE = a(32, "hero_of_the_village", new MobEffectList(MobEffectInfo.BENEFICIAL, 4521796));
|
|
|
|
+ // CraftBukkit start
|
|
+ static {
|
|
+ for (Object effect : IRegistry.MOB_EFFECT) {
|
|
+ org.bukkit.potion.PotionEffectType.registerPotionEffectType(new org.bukkit.craftbukkit.potion.CraftPotionEffectType((MobEffectList) effect));
|
|
+ }
|
|
+ }
|
|
+ // CraftBukkit end
|
|
+
|
|
private static MobEffectList a(int i, String s, MobEffectList mobeffectlist) {
|
|
return (MobEffectList) IRegistry.a(IRegistry.MOB_EFFECT, i, s, mobeffectlist);
|
|
}
|