handle NaN health/absorb values and repair bad data

This commit is contained in:
Aikar
2015-09-27 01:18:02 -04:00
parent 54fe0287a2
commit becb30e9e6
2 changed files with 90 additions and 60 deletions

View File

@@ -2350,6 +2350,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
}
public void setRealHealth(double health) {
if (Double.isNaN(health)) {return;} // Paper - Check for NaN
this.health = health;
}