v0.6.1b: fixed a bug with plants caused by Dungeon.visible changes
This commit is contained in:
parent
04e575bd23
commit
b03bfba296
|
@ -167,7 +167,7 @@ public abstract class Plant implements Bundlable {
|
|||
|
||||
public Plant couch( int pos ) {
|
||||
try {
|
||||
if (Dungeon.visible[pos]) {
|
||||
if (Dungeon.visible != null && Dungeon.visible[pos]) {
|
||||
Sample.INSTANCE.play(Assets.SND_PLANT);
|
||||
}
|
||||
Plant plant = plantClass.newInstance();
|
||||
|
|
Loading…
Reference in New Issue
Block a user