v0.6.1b: fixed a bug with plants caused by Dungeon.visible changes

This commit is contained in:
Evan Debenham 2017-08-22 01:18:41 -04:00
parent 04e575bd23
commit b03bfba296

View File

@ -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();