Merge pull request #1 from Gibstick/gibstick-derp
Made sure sheep are dead
This commit is contained in:
commit
64e5f0583d
@ -85,6 +85,7 @@ public final class DiscoSheep extends JavaPlugin {
|
|||||||
// Mark all sheep in the sheep array for removal, then clear the array
|
// Mark all sheep in the sheep array for removal, then clear the array
|
||||||
void removeAllSheep() {
|
void removeAllSheep() {
|
||||||
for (Sheep sheep : getSheep()) {
|
for (Sheep sheep : getSheep()) {
|
||||||
|
sheep.setHealth(0);
|
||||||
sheep.remove();
|
sheep.remove();
|
||||||
}
|
}
|
||||||
getSheep().clear();
|
getSheep().clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user