2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/effect/MobEffects.java
|
|
|
|
+++ b/net/minecraft/world/effect/MobEffects.java
|
|
|
|
@@ -65,6 +65,14 @@
|
2019-04-23 04:00:00 +02:00
|
|
|
});
|
|
|
|
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
|
|
|
|
+
|
2021-06-11 07:00:00 +02:00
|
|
|
public MobEffects() {}
|
|
|
|
|
2019-04-23 04:00:00 +02:00
|
|
|
private static MobEffectList a(int i, String s, MobEffectList mobeffectlist) {
|