Made sure sheep are dead

This commit is contained in:
Charlie Wang
2013-06-30 17:55:15 -04:00
parent 0e89570248
commit 4ccba41757

View File

@@ -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();