removed 10000 HP on sheep

This commit is contained in:
Charlie Wang 2013-07-12 10:42:22 -04:00
parent 968603d54f
commit 869210e0d2

View File

@ -67,9 +67,7 @@ public class DiscoParty {
void spawnSheep(World world, Location loc) { void spawnSheep(World world, Location loc) {
Sheep newSheep = (Sheep) world.spawnEntity(loc, EntityType.SHEEP); Sheep newSheep = (Sheep) world.spawnEntity(loc, EntityType.SHEEP);
newSheep.setMaxHealth(10000); newSheep.setColor(discoColours[(int) (Math.random() * (discoColours.length - 1))]);
newSheep.setHealth(10000);
newSheep.setColor(discoColours[(int) Math.round(Math.random() * (discoColours.length - 1))]);
newSheep.setTarget(player); newSheep.setTarget(player);
newSheep.setBreed(false); newSheep.setBreed(false);
getSheep().add(newSheep); getSheep().add(newSheep);