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 );
|
super.spend( time / timeScale );
|
||||||
}
|
}
|
||||||
|
|
||||||
public HashSet<Buff> buffs() {
|
public synchronized HashSet<Buff> buffs() {
|
||||||
return buffs;
|
return new HashSet<>(buffs);
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
|
|||||||
Reference in New Issue
Block a user