From 869210e0d2e3c753c3a5a55faeab57c1bf71081a Mon Sep 17 00:00:00 2001 From: Charlie Wang Date: Fri, 12 Jul 2013 10:42:22 -0400 Subject: [PATCH] removed 10000 HP on sheep --- src/gibstick/bukkit/discosheep/DiscoParty.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gibstick/bukkit/discosheep/DiscoParty.java b/src/gibstick/bukkit/discosheep/DiscoParty.java index 2bcdd0f..d47e8bf 100644 --- a/src/gibstick/bukkit/discosheep/DiscoParty.java +++ b/src/gibstick/bukkit/discosheep/DiscoParty.java @@ -67,9 +67,7 @@ public class DiscoParty { void spawnSheep(World world, Location loc) { Sheep newSheep = (Sheep) world.spawnEntity(loc, EntityType.SHEEP); - newSheep.setMaxHealth(10000); - newSheep.setHealth(10000); - newSheep.setColor(discoColours[(int) Math.round(Math.random() * (discoColours.length - 1))]); + newSheep.setColor(discoColours[(int) (Math.random() * (discoColours.length - 1))]); newSheep.setTarget(player); newSheep.setBreed(false); getSheep().add(newSheep);