summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nms-patches/EntityLiving.patch8
-rw-r--r--nms-patches/EntityOcelot.patch28
-rw-r--r--nms-patches/EntityParrot.patch12
-rw-r--r--nms-patches/EntityWolf.patch9
4 files changed, 29 insertions, 28 deletions
diff --git a/nms-patches/EntityLiving.patch b/nms-patches/EntityLiving.patch
index 33ec1365..e08c8599 100644
--- a/nms-patches/EntityLiving.patch
+++ b/nms-patches/EntityLiving.patch
@@ -309,10 +309,10 @@
}
+ // CraftBukkit start
-+ if(this instanceof EntityAnimal){
-+ ((EntityAnimal)this).resetLove();
-+ if(this instanceof EntityTameableAnimal){
-+ ((EntityTameableAnimal)this).getGoalSit().setSitting(false);
++ if (this instanceof EntityAnimal) {
++ ((EntityAnimal) this).resetLove();
++ if (this instanceof EntityTameableAnimal) {
++ ((EntityTameableAnimal) this).getGoalSit().setSitting(false);
+ }
+ }
+ // CraftBukkit end
diff --git a/nms-patches/EntityOcelot.patch b/nms-patches/EntityOcelot.patch
index ae02a4e6..1caea988 100644
--- a/nms-patches/EntityOcelot.patch
+++ b/nms-patches/EntityOcelot.patch
@@ -9,25 +9,17 @@
}
protected void initAttributes() {
-@@ -103,6 +103,9 @@
- return entity.damageEntity(DamageSource.mobAttack(this), 3.0F);
- }
-
-+ /* CraftBukkit start
-+ // Function disabled as it has no special function anymore after
-+ // setSitting is disabled.
- public boolean damageEntity(DamageSource damagesource, float f) {
- if (this.isInvulnerable(damagesource)) {
+@@ -108,7 +108,8 @@
return false;
-@@ -114,6 +117,7 @@
- return super.damageEntity(damagesource, f);
- }
- }
-+ // CraftBukkit end */
+ } else {
+ if (this.goalSit != null) {
+- this.goalSit.setSitting(false);
++ // CraftBukkit - moved into EntityLiving.d(DamageSource, float)
++ // this.goalSit.setSitting(false);
+ }
- @Nullable
- protected MinecraftKey J() {
-@@ -133,7 +137,8 @@
+ return super.damageEntity(damagesource, f);
+@@ -133,7 +134,8 @@
}
if (!this.world.isClientSide) {
@@ -37,7 +29,7 @@
this.c(entityhuman);
this.setCatType(1 + this.world.random.nextInt(3));
this.p(true);
-@@ -237,7 +242,7 @@
+@@ -237,7 +239,7 @@
entityocelot.setPositionRotation(this.locX, this.locY, this.locZ, this.yaw, 0.0F);
entityocelot.setAgeRaw(-24000);
diff --git a/nms-patches/EntityParrot.patch b/nms-patches/EntityParrot.patch
index 5362bafa..432c1d97 100644
--- a/nms-patches/EntityParrot.patch
+++ b/nms-patches/EntityParrot.patch
@@ -27,7 +27,17 @@
this.c(entityhuman);
this.p(true);
this.world.broadcastEntityEffect(this, (byte) 7);
-@@ -316,33 +316,35 @@
+@@ -276,7 +276,8 @@
+ return false;
+ } else {
+ if (this.goalSit != null) {
+- this.goalSit.setSitting(false);
++ // CraftBukkit - moved into EntityLiving.d(DamageSource, float)
++ // this.goalSit.setSitting(false);
+ }
+
+ return super.damageEntity(damagesource, f);
+@@ -316,33 +317,35 @@
}
static {
diff --git a/nms-patches/EntityWolf.patch b/nms-patches/EntityWolf.patch
index 3631a7a5..1efa3ef5 100644
--- a/nms-patches/EntityWolf.patch
+++ b/nms-patches/EntityWolf.patch
@@ -35,20 +35,19 @@
public void setGoalTarget(@Nullable EntityLiving entityliving) {
super.setGoalTarget(entityliving);
if (entityliving == null) {
-@@ -200,9 +221,10 @@
+@@ -200,9 +221,9 @@
Entity entity = damagesource.getEntity();
if (this.goalSit != null) {
- this.goalSit.setSitting(false);
+ // CraftBukkit - moved into EntityLiving.d(DamageSource, float)
-+ // PAIL : checkme
+ // this.goalSit.setSitting(false);
}
-
if (entity != null && !(entity instanceof EntityHuman) && !(entity instanceof EntityArrow)) {
f = (f + 1.0F) / 2.0F;
}
-@@ -245,7 +267,7 @@
+@@ -245,7 +266,7 @@
itemstack.subtract(1);
}
@@ -57,7 +56,7 @@
return true;
}
} else if (itemstack.getItem() == Items.DYE) {
-@@ -266,7 +288,7 @@
+@@ -266,7 +287,7 @@
this.goalSit.setSitting(!this.isSitting());
this.bd = false;
this.navigation.p();
@@ -66,7 +65,7 @@
}
} else if (itemstack.getItem() == Items.BONE && !this.isAngry()) {
if (!entityhuman.abilities.canInstantlyBuild) {
-@@ -274,12 +296,13 @@
+@@ -274,12 +295,13 @@
}
if (!this.world.isClientSide) {