summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit
diff options
context:
space:
mode:
authorTahg <tahgtahv@gmail.com>2011-01-17 16:45:20 -0500
committerTahg <tahgtahv@gmail.com>2011-01-17 16:45:20 -0500
commitc20a40a5810acbcdf75130349cfa134966781251 (patch)
treec102dd507085c47044d83f5c2499ac7691579811 /src/main/java/org/bukkit
parent42099e737979ccb1143c9c8765d8030f86322fb4 (diff)
downloadcraftbukkit-c20a40a5810acbcdf75130349cfa134966781251.tar
craftbukkit-c20a40a5810acbcdf75130349cfa134966781251.tar.gz
craftbukkit-c20a40a5810acbcdf75130349cfa134966781251.tar.lz
craftbukkit-c20a40a5810acbcdf75130349cfa134966781251.tar.xz
craftbukkit-c20a40a5810acbcdf75130349cfa134966781251.zip
fixed health
Diffstat (limited to 'src/main/java/org/bukkit')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
index ed43dba0..8ed7efd8 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
@@ -24,15 +24,15 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
}
public int getHealth() {
- return entity.ba;
+ return entity.aZ;
}
public void setHealth(int health) {
- if ((health < 0) || (health > 20)) {
- throw new IllegalArgumentException("Health must be between 0 and 20");
+ if ((health < 0) || (health > 200)) {
+ throw new IllegalArgumentException("Health must be between 0 and 200");
}
- entity.ba = health;
+ entity.aZ = health;
}
@Override