geforkt von Mirrors/Paper
75 Zeilen
2.3 KiB
Diff
75 Zeilen
2.3 KiB
Diff
--- a/net/minecraft/server/EntityBee.java
|
|
+++ b/net/minecraft/server/EntityBee.java
|
|
@@ -157,7 +157,7 @@
|
|
}
|
|
|
|
this.setHasStung(true);
|
|
- this.setGoalTarget((EntityLiving) null);
|
|
+ this.setGoalTarget((EntityLiving) null, org.bukkit.event.entity.EntityTargetEvent.TargetReason.FORGOT_TARGET, true); // CraftBukkit
|
|
this.a(SoundEffects.ENTITY_BEE_STING, 1.0F, 1.0F);
|
|
}
|
|
|
|
@@ -572,7 +572,7 @@
|
|
class d extends EntityBee.a {
|
|
|
|
private d() {
|
|
- super(null);
|
|
+ super(); // CraftBukkit - decompile error
|
|
}
|
|
|
|
@Override
|
|
@@ -632,7 +632,7 @@
|
|
class g extends EntityBee.a {
|
|
|
|
private g() {
|
|
- super(null);
|
|
+ super(); // CraftBukkit - decompile error
|
|
}
|
|
|
|
@Override
|
|
@@ -696,7 +696,7 @@
|
|
class i extends EntityBee.a {
|
|
|
|
private i() {
|
|
- super(null);
|
|
+ super(); // CraftBukkit - decompile error
|
|
}
|
|
|
|
@Override
|
|
@@ -760,7 +760,7 @@
|
|
private int h = 0;
|
|
|
|
k() {
|
|
- super(null);
|
|
+ super(); // CraftBukkit - decompile error
|
|
this.a(EnumSet.of(PathfinderGoal.Type.MOVE));
|
|
}
|
|
|
|
@@ -944,7 +944,7 @@
|
|
private int c;
|
|
|
|
f() {
|
|
- super(null);
|
|
+ super(); // CraftBukkit - decompile error
|
|
this.c = EntityBee.this.world.random.nextInt(10);
|
|
this.a(EnumSet.of(PathfinderGoal.Type.MOVE));
|
|
}
|
|
@@ -1001,7 +1001,7 @@
|
|
private PathEntity e;
|
|
|
|
e() {
|
|
- super(null);
|
|
+ super(); // CraftBukkit - decompile error
|
|
this.c = EntityBee.this.world.random.nextInt(10);
|
|
this.d = Lists.newArrayList();
|
|
this.e = null;
|
|
@@ -1210,7 +1210,7 @@
|
|
@Override
|
|
protected void a(EntityInsentient entityinsentient, EntityLiving entityliving) {
|
|
if (entityinsentient instanceof EntityBee && this.e.hasLineOfSight(entityliving) && ((EntityBee) entityinsentient).a((Entity) entityliving)) {
|
|
- entityinsentient.setGoalTarget(entityliving);
|
|
+ entityinsentient.setGoalTarget(entityliving, org.bukkit.event.entity.EntityTargetEvent.TargetReason.TARGET_ATTACKED_ENTITY, true); // CraftBukkit - reason
|
|
}
|
|
|
|
}
|