3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 04:20:08 +01:00

SPIGOT-1991: Further damage fixes

Dieser Commit ist enthalten in:
md_5 2016-03-20 13:40:12 +11:00
Ursprung b3f6de0da5
Commit 549962feaf

Datei anzeigen

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