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

@ -611,6 +611,14 @@ public abstract class Level implements Bundlable {
if (plant != null) {
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 );
plants.put( pos, plant );