v0.6.1b: fixed concurrent modification exceptions when gettin buffs
This commit is contained in:
@@ -314,8 +314,8 @@ public abstract class Char extends Actor {
|
||||
super.spend( time / timeScale );
|
||||
}
|
||||
|
||||
public HashSet<Buff> buffs() {
|
||||
return buffs;
|
||||
public synchronized HashSet<Buff> buffs() {
|
||||
return new HashSet<>(buffs);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
|
||||
Reference in New Issue
Block a user