mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 19:15:32 +01:00
30 lines
1.5 KiB
Diff
30 lines
1.5 KiB
Diff
--- a/net/minecraft/server/EntityDolphin.java
|
|
+++ b/net/minecraft/server/EntityDolphin.java
|
|
@@ -95,7 +95,7 @@
|
|
this.goalSelector.a(5, new PathfinderGoalLookAtPlayer(this, EntityHuman.class, 6.0F));
|
|
this.goalSelector.a(5, new PathfinderGoalWaterJump(this, 10));
|
|
this.goalSelector.a(6, new PathfinderGoalMeleeAttack(this, 1.2000000476837158D, true));
|
|
- this.goalSelector.a(8, new EntityDolphin.d(null));
|
|
+ this.goalSelector.a(8, new EntityDolphin.d()); // CraftBukkit - decompile error
|
|
this.goalSelector.a(8, new PathfinderGoalFollowBoat(this));
|
|
this.goalSelector.a(9, new PathfinderGoalAvoidTarget(this, EntityGuardian.class, 8.0F, 1.0D, 1.0D));
|
|
this.targetSelector.a(1, new PathfinderGoalHurtByTarget(this, true, new Class[] { EntityGuardian.class}));
|
|
@@ -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
|
|
}
|
|
|
|
}
|