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
|
## Java
|
||||||
|
|
||||||
*.class
|
*.class
|
||||||
|
@ -59,6 +59,7 @@ public class World {
|
|||||||
public void newGen(boolean restart) {
|
public void newGen(boolean restart) {
|
||||||
elements.removeAll(creatures);
|
elements.removeAll(creatures);
|
||||||
graveyard.addAll(creatures);
|
graveyard.addAll(creatures);
|
||||||
|
creatures.clear();
|
||||||
Comparator creatureComp = new Comparator<Creature>() {
|
Comparator creatureComp = new Comparator<Creature>() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user