2018-07-20 08:04:37 +02:00
|
|
|
--- a/net/minecraft/server/EntityDolphin.java
|
|
|
|
+++ b/net/minecraft/server/EntityDolphin.java
|
|
|
|
@@ -412,7 +412,7 @@
|
|
|
|
}
|
|
|
|
|
|
|
|
public void c() {
|
|
|
|
- this.c.addEffect(new MobEffect(MobEffects.DOLPHINS_GRACE, 100));
|
|
|
|
+ this.c.addEffect(new MobEffect(MobEffects.DOLPHINS_GRACE, 100), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.DOLPHIN); // CraftBukkit
|
|
|
|
}
|
|
|
|
|
|
|
|
public void d() {
|
|
|
|
@@ -429,7 +429,7 @@
|
|
|
|
}
|
|
|
|
|
2018-07-22 04:00:00 +02:00
|
|
|
if (this.c.isSwimming() && this.c.world.random.nextInt(6) == 0) {
|
2018-07-20 08:04:37 +02:00
|
|
|
- this.c.addEffect(new MobEffect(MobEffects.DOLPHINS_GRACE, 100));
|
|
|
|
+ this.c.addEffect(new MobEffect(MobEffects.DOLPHINS_GRACE, 100), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.DOLPHIN); // CraftBukkit
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|