13
0
geforkt von Mirrors/Paper

SPIGOT-1991: Further damage fixes

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2016-03-20 13:40:12 +11:00
Ursprung fb5328bb3c
Commit 8a5e72c953

Datei anzeigen

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