diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java index 4641e3d529..58fbed1d30 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java @@ -91,8 +91,9 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity { } public void setHealth(double health) { + health = (float) health; if ((health < 0) || (health > getMaxHealth())) { - throw new IllegalArgumentException("Health must be between 0 and " + getMaxHealth()); + throw new IllegalArgumentException("Health must be between 0 and " + getMaxHealth() + "(" + health + ")"); } if (health == 0) {