SPIGOT-1991: Further damage fixes

This commit is contained in:
md_5 2016-03-20 13:40:12 +11:00
parent b3f6de0da5
commit 549962feaf

View File

@ -489,11 +489,11 @@
this.getCombatTracker().trackDamage(damagesource, f2, f);
- this.setAbsorptionHearts(this.getAbsorptionHearts() - f);
+ // CraftBukkit start
+ if (human) {
+ return true;
+ if (!human) {
+ this.setAbsorptionHearts(this.getAbsorptionHearts() - f);
+ }
+ // CraftBukkit end
+ this.setAbsorptionHearts(this.getAbsorptionHearts() - f);
+ return true;
+ } else {
+ return false;
}