Skip to content
Snippets Groups Projects
Commit e4916bd8 authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers
Browse files

ok, this should fix the thing which I didn't fix before (cloning frames)

parent 6ebca243
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,10 @@ public class SimpleBattle {
int currentTick;
public SimpleBattle() {
this(true);
}
public SimpleBattle(boolean visible) {
this.objects = new ArrayList<>();
this.stats = new ArrayList<>();
......@@ -126,7 +130,7 @@ public class SimpleBattle {
public SimpleBattle clone() {
SimpleBattle state = new SimpleBattle();
SimpleBattle state = new SimpleBattle(false);
state.objects = copyObjects();
state.stats = copyStats();
state.currentTick = currentTick;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment