v0.7.5b: fixed further cases of text being rendered from the actor thread

This commit is contained in:
Evan Debenham 2019-10-13 02:31:13 -04:00
parent dcba7d03eb
commit f98cbd80f1

View File

@ -17,6 +17,7 @@ import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
import com.shatteredpixel.shatteredpixeldungeon.sprites.WardSprite;
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
import com.shatteredpixel.shatteredpixeldungeon.windows.WndOptions;
import com.watabou.noosa.Game;
import com.watabou.noosa.audio.Sample;
import com.watabou.utils.Bundle;
import com.watabou.utils.Callback;
@ -362,6 +363,9 @@ public class WandOfWarding extends Wand {
@Override
public boolean interact() {
Game.runOnRenderThread(new Callback() {
@Override
public void call() {
GameScene.show(new WndOptions( Messages.get(this, "dismiss_title"),
Messages.get(this, "dismiss_body"),
Messages.get(this, "dismiss_confirm"),
@ -373,6 +377,8 @@ public class WandOfWarding extends Wand {
}
}
});
}
});
return true;
}