v0.2.2a: fixed a bug with plants and grass stacking on level gen (they are no longer able to)

This commit is contained in:
Evan Debenham 2014-11-05 14:37:44 -05:00
parent dfda4a53c2
commit fd81d67616

View File

@ -612,6 +612,14 @@ public abstract class Level implements Bundlable {
plant.wither(); plant.wither();
} }
if (map[pos] == Terrain.HIGH_GRASS ||
map[pos] == Terrain.EMPTY ||
map[pos] == Terrain.EMBERS ||
map[pos] == Terrain.EMPTY_DECO) {
set(pos, Terrain.GRASS);
GameScene.updateMap( pos );
}
plant = seed.couch( pos ); plant = seed.couch( pos );
plants.put( pos, plant ); plants.put( pos, plant );