v0.6.0: added some safety checks to gamescene
This commit is contained in:
parent
4bdae1462c
commit
fab0e02711
|
@ -697,11 +697,11 @@ public class GameScene extends PixelScene {
|
|||
}
|
||||
|
||||
public static void pickUp( Item item ) {
|
||||
scene.toolbar.pickup( item );
|
||||
if (scene != null) scene.toolbar.pickup( item );
|
||||
}
|
||||
|
||||
public static void pickUpJournal( Item item ) {
|
||||
scene.pane.pickup( item );
|
||||
if (scene != null) scene.pane.pickup( item );
|
||||
}
|
||||
|
||||
public static void resetMap() {
|
||||
|
@ -748,8 +748,10 @@ public class GameScene extends PixelScene {
|
|||
}
|
||||
|
||||
public static void show( Window wnd ) {
|
||||
cancelCellSelector();
|
||||
scene.addToFront( wnd );
|
||||
if (scene != null) {
|
||||
cancelCellSelector();
|
||||
scene.addToFront(wnd);
|
||||
}
|
||||
}
|
||||
|
||||
public static void updateFog(){
|
||||
|
|
Loading…
Reference in New Issue
Block a user