From 4ccba417575166f0d422cddc045753d43eef8302 Mon Sep 17 00:00:00 2001 From: Charlie Wang Date: Sun, 30 Jun 2013 17:55:15 -0400 Subject: [PATCH] Made sure sheep are dead --- src/gibstick/bukkit/discosheep/DiscoSheep.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gibstick/bukkit/discosheep/DiscoSheep.java b/src/gibstick/bukkit/discosheep/DiscoSheep.java index 888acd1..a6edbf1 100644 --- a/src/gibstick/bukkit/discosheep/DiscoSheep.java +++ b/src/gibstick/bukkit/discosheep/DiscoSheep.java @@ -85,6 +85,7 @@ public final class DiscoSheep extends JavaPlugin { // Mark all sheep in the sheep array for removal, then clear the array void removeAllSheep() { for (Sheep sheep : getSheep()) { + sheep.setHealth(0); sheep.remove(); } getSheep().clear();