Update upstream B/CB/S

This commit is contained in:
Zach Brown
2016-07-30 18:02:34 -05:00
parent 163d33a68b
commit 4db0ba851c
5 changed files with 7 additions and 8 deletions

View File

@@ -19,5 +19,5 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ + (this instanceof CraftPlayer ? ", player: " + this.getName() + ')' : ')')); + + (this instanceof CraftPlayer ? ", player: " + this.getName() + ')' : ')'));
} }
if (entity instanceof EntityPlayer && health == 0) { if (health == 0) {
-- --

View File

@@ -30,10 +30,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ if (com.destroystokyo.paper.PaperConfig.setHealthBeforeDeathEvent) { + if (com.destroystokyo.paper.PaperConfig.setHealthBeforeDeathEvent) {
+ this.getHandle().setHealth((float) health); + this.getHandle().setHealth((float) health);
+ } + }
+ // Paper end +
+ if (health == 0) {
if (entity instanceof EntityPlayer && health == 0) { getHandle().die(DamageSource.GENERIC);
((EntityPlayer) entity).die(DamageSource.GENERIC);
} }
- getHandle().setHealth((float) health); - getHandle().setHealth((float) health);