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