mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 19:15:32 +01:00
SPIGOT-1991: Further damage fixes
This commit is contained in:
parent
b3f6de0da5
commit
549962feaf
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user