handle NaN health/absorb values and repair bad data
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user