diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/Char.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/Char.java index 2ee7927ef..8094c80bf 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/Char.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/Char.java @@ -314,8 +314,8 @@ public abstract class Char extends Actor { super.spend( time / timeScale ); } - public HashSet buffs() { - return buffs; + public synchronized HashSet buffs() { + return new HashSet<>(buffs); } @SuppressWarnings("unchecked")