Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-21 05:50:05 +01:00
21 Zeilen
812 B
Diff
21 Zeilen
812 B
Diff
--- 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 @@
|
|
}
|
|
|
|
if (this.c.isSwimming() && this.c.world.random.nextInt(6) == 0) {
|
|
- 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
|
|
}
|
|
|
|
}
|