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:
parent
dfda4a53c2
commit
fd81d67616
|
@ -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 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user