mirror of
https://github.com/fazo96/AIrium.git
synced 2025-01-10 09:34:20 +01:00
fix bug with newGen
This commit is contained in:
parent
91444f4d0e
commit
480d763f95
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,5 @@
|
||||
.nb-gradle/profiles/private/*
|
||||
|
||||
## Java
|
||||
|
||||
*.class
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user