1
0
mirror of https://github.com/fazo96/AIrium.git synced 2025-01-09 09:29:53 +01:00

fix bug with newGen

This commit is contained in:
Enrico Fasoli 2015-07-02 18:21:17 +02:00
parent 91444f4d0e
commit 480d763f95
2 changed files with 3 additions and 0 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
.nb-gradle/profiles/private/*
## Java
*.class

View File

@ -59,6 +59,7 @@ public class World {
public void newGen(boolean restart) {
elements.removeAll(creatures);
graveyard.addAll(creatures);
creatures.clear();
Comparator creatureComp = new Comparator<Creature>() {
@Override