Minecraft 1.9.4

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2016-05-10 21:47:39 +10:00
parent c9a6e9175c
commit d506c12c07
236 changed files with 1471 additions and 1822 deletions

View File

@@ -9,10 +9,10 @@
import java.util.Random;
import java.util.Set;
import java.util.UUID;
@@ -55,7 +57,17 @@
@@ -56,7 +58,17 @@
}
public void setGoalTarget(EntityLiving entityliving) {
public void setGoalTarget(@Nullable EntityLiving entityliving) {
- super.setGoalTarget(entityliving);
+ // CraftBukkit start - fire event
+ setGoalTarget(entityliving, EntityTargetEvent.TargetReason.UNKNOWN, true);
@@ -28,7 +28,7 @@
AttributeInstance attributeinstance = this.getAttributeInstance(GenericAttributes.MOVEMENT_SPEED);
if (entityliving == null) {
@@ -69,6 +81,7 @@
@@ -70,6 +82,7 @@
attributeinstance.b(EntityEnderman.b);
}
}
@@ -36,7 +36,7 @@
}
@@ -306,8 +319,12 @@
@@ -309,8 +322,12 @@
boolean flag = movingobjectposition != null && movingobjectposition.a().equals(blockposition);
if (EntityEnderman.c.contains(block) && flag) {
@@ -51,7 +51,7 @@
}
}
@@ -337,8 +354,12 @@
@@ -340,8 +357,12 @@
IBlockData iblockdata2 = this.a.getCarried();
if (iblockdata2 != null && this.a(world, blockposition, iblockdata2.getBlock(), iblockdata, iblockdata1)) {