Skip to content

Commit

Permalink
v0.6.1b: fixed concurrent modification exceptions when gettin buffs
Browse files Browse the repository at this point in the history
  • Loading branch information
00-Evan committed Aug 30, 2017
1 parent 42a43a1 commit 4c0f588
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ protected void spend( float time ) {
super.spend( time / timeScale );
}

public HashSet<Buff> buffs() {
return buffs;
public synchronized HashSet<Buff> buffs() {
return new HashSet<>(buffs);
}

@SuppressWarnings("unchecked")
Expand Down

0 comments on commit 4c0f588

Please sign in to comment.