Fix tree checks

This commit is contained in:
dfsek
2020-10-14 01:15:37 -07:00
parent 064a30190c
commit fc9f92187b

View File

@@ -81,7 +81,7 @@ public class FloraPopulator extends GaeaBlockPopulator {
List<Block> blocks = new ArrayList<>();
for(int y : check) {
if(chunk.getBlock(x, y, z).getType().isSolid() && chunk.getBlock(x, y + 1, z).getType().isAir()) {
blocks.add(chunk.getBlock(x, y, z));
blocks.add(chunk.getBlock(x, y+1, z));
}
}
return blocks;