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 ) {
|
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();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user