SPIGOT-1613: Fix missed use of scaled health

Dieser Commit ist enthalten in:
md_5 2016-03-06 08:38:01 +11:00
Ursprung 45171f0864
Commit ac251f0cf9

Datei anzeigen

@ -103,6 +103,15 @@
this.playerInteractManager.a();
--this.invulnerableTicks;
if (this.noDamageTicks > 0) {
@@ -192,7 +251,7 @@
}
if (this.getHealth() != this.lastHealthSent || this.cb != this.foodData.getFoodLevel() || this.foodData.getSaturationLevel() == 0.0F != this.cc) {
- this.playerConnection.sendPacket(new PacketPlayOutUpdateHealth(this.getHealth(), this.foodData.getFoodLevel(), this.foodData.getSaturationLevel()));
+ this.playerConnection.sendPacket(new PacketPlayOutUpdateHealth(this.getBukkitEntity().getScaledHealth(), this.foodData.getFoodLevel(), this.foodData.getSaturationLevel())); // CraftBukkit
this.lastHealthSent = this.getHealth();
this.cb = this.foodData.getFoodLevel();
this.cc = this.foodData.getSaturationLevel() == 0.0F;
@@ -213,6 +272,12 @@
this.a(IScoreboardCriteria.i, MathHelper.f((float) this.bW));
}