v0.6.1b: fixed concurrent modification exceptions when gettin buffs

This commit is contained in:
Evan Debenham 2017-08-24 08:46:13 -04:00
parent 42a43a115e
commit 4c0f588489

View File

@ -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")