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