Skip to content

Commit

Permalink
Flowers no longer spawn in spots where tilemap2 already has something
Browse files Browse the repository at this point in the history
  • Loading branch information
heimskr committed Apr 24, 2023
1 parent 45c701d commit 77a710d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/biome/Grassland.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ namespace Game3 {
const auto &tileset = realm.getTileset();
const auto tile1 = tileset[realm.getLayer1(row, column)];

if (grassSet.contains(tile1)) {
if (grassSet.contains(tile1) && realm.getLayer2(row, column) == tileset.getEmptyID()) {
if (distribution(rng) < 2)
realm.setLayer2({row, column}, choose(tileset.getCategoryIDs("base:category/flowers"), rng), false);

Expand Down

0 comments on commit 77a710d

Please sign in to comment.