v0.6.1b: fixed concurrent modification exceptions when gettin buffs
This commit is contained in:
parent
42a43a115e
commit
4c0f588489
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user