mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-09-18 21:54:50 +00:00
SPIGOT-1991: Further damage fixes
This commit is contained in:
parent
b3f6de0da5
commit
549962feaf
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue