2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/EntityAnimal.java
|
|
|
|
+++ b/net/minecraft/server/EntityAnimal.java
|
2016-05-10 13:47:39 +02:00
|
|
|
@@ -40,6 +40,9 @@
|
2014-12-09 15:40:38 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
+ /* 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)) {
|
|
|
|
return false;
|
2016-05-10 13:47:39 +02:00
|
|
|
@@ -48,6 +51,7 @@
|
2014-12-09 15:40:38 +01:00
|
|
|
return super.damageEntity(damagesource, f);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+ // CraftBukkit end */
|
|
|
|
|
|
|
|
public float a(BlockPosition blockposition) {
|
2016-02-29 22:32:46 +01:00
|
|
|
return this.world.getType(blockposition.down()).getBlock() == Blocks.GRASS ? 10.0F : this.world.n(blockposition) - 0.5F;
|