mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:06:01 +01:00
SPIGOT-1991: Further damage fixes
By: md_5 <git@md-5.net>
This commit is contained in:
parent
fb5328bb3c
commit
8a5e72c953
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