From 7e2f63edbadfa9514c02b040ec0d2acb5ed465ca Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 9 May 2020 19:36:58 -0400 Subject: [PATCH] v0.8.1: added a safety sync check to buff vfx on character sprites --- .../shatteredpixeldungeon/sprites/CharSprite.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/sprites/CharSprite.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/sprites/CharSprite.java index edf3a3248..605bdadf2 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/sprites/CharSprite.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/sprites/CharSprite.java @@ -342,7 +342,7 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip flashTime = FLASH_INTERVAL; } - public void add( State state ) { + public synchronized void add( State state ) { switch (state) { case BURNING: burning = emitter(); @@ -396,7 +396,7 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip } } - public void remove( State state ) { + public synchronized void remove( State state ) { switch (state) { case BURNING: if (burning != null) {