SPIGOT-3324: Improve tameable damage handling

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2017-06-24 10:01:46 +10:00
parent d71a1a4036
commit 622d0477c5
4 changed files with 29 additions and 28 deletions

View File

@@ -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