From af9d9300db35d92c1fc49fd1b4dc51870e6ddbb6 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 22 Jul 2020 13:46:09 -0400 Subject: [PATCH] v0.8.2: fixed deadlocks in charsprite caused by safety check I really need to adjust some graphics logic to never be called from the actor thread, that would properly prevent this. --- .../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 d2f93cd52..a2f0fffad 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/sprites/CharSprite.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/sprites/CharSprite.java @@ -339,7 +339,7 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip flashTime = FLASH_INTERVAL; } - public synchronized void add( State state ) { + public void add( State state ) { switch (state) { case BURNING: burning = emitter(); @@ -393,7 +393,7 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip } } - public synchronized void remove( State state ) { + public void remove( State state ) { switch (state) { case BURNING: if (burning != null) {