Archiviert
13
0
Dieser Commit ist enthalten in:
Tahg 2011-01-17 16:45:20 -05:00
Ursprung 42099e7379
Commit c20a40a581

Datei anzeigen

@ -24,15 +24,15 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
} }
public int getHealth() { public int getHealth() {
return entity.ba; return entity.aZ;
} }
public void setHealth(int health) { public void setHealth(int health) {
if ((health < 0) || (health > 20)) { if ((health < 0) || (health > 200)) {
throw new IllegalArgumentException("Health must be between 0 and 20"); throw new IllegalArgumentException("Health must be between 0 and 200");
} }
entity.ba = health; entity.aZ = health;
} }
@Override @Override