summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityOcelot.patch
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2017-06-24 10:01:46 +1000
committermd_5 <git@md-5.net>2017-06-24 10:01:46 +1000
commit753a8e700db5216abcc53eb56a9c26226c1ad9ed (patch)
tree7459121295904532de38db1e98520427b8c60deb /nms-patches/EntityOcelot.patch
parent763827668e6e5cddc111f3c93a0d718fec21ff51 (diff)
downloadcraftbukkit-753a8e700db5216abcc53eb56a9c26226c1ad9ed.tar
craftbukkit-753a8e700db5216abcc53eb56a9c26226c1ad9ed.tar.gz
craftbukkit-753a8e700db5216abcc53eb56a9c26226c1ad9ed.tar.lz
craftbukkit-753a8e700db5216abcc53eb56a9c26226c1ad9ed.tar.xz
craftbukkit-753a8e700db5216abcc53eb56a9c26226c1ad9ed.zip
SPIGOT-3324: Improve tameable damage handling
Diffstat (limited to 'nms-patches/EntityOcelot.patch')
-rw-r--r--nms-patches/EntityOcelot.patch28
1 files changed, 10 insertions, 18 deletions
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);