From b03bfba296df134c5f3db52161ca2e0189b64848 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 22 Aug 2017 01:18:41 -0400 Subject: [PATCH] v0.6.1b: fixed a bug with plants caused by Dungeon.visible changes --- .../com/shatteredpixel/shatteredpixeldungeon/plants/Plant.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Plant.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Plant.java index 289490027..754697d0e 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Plant.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/plants/Plant.java @@ -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();