v2.2.0: added a check if the game closed while selecting smith rewards
This commit is contained in:
+6
-1
@@ -207,7 +207,12 @@ public class Blacksmith extends NPC {
|
|||||||
Game.runOnRenderThread(new Callback() {
|
Game.runOnRenderThread(new Callback() {
|
||||||
@Override
|
@Override
|
||||||
public void call() {
|
public void call() {
|
||||||
GameScene.show( new WndBlacksmith( Blacksmith.this, Dungeon.hero ) );
|
//in case game was closed during smith reward selection
|
||||||
|
if (Quest.smithRewards != null && Quest.smiths > 0){
|
||||||
|
GameScene.show( new WndBlacksmith.WndSmith( Blacksmith.this, Dungeon.hero ) );
|
||||||
|
} else {
|
||||||
|
GameScene.show(new WndBlacksmith(Blacksmith.this, Dungeon.hero));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user