mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-08-30 13:50:46 +00:00
Fix tree checks
This commit is contained in:
@@ -81,7 +81,7 @@ public class FloraPopulator extends GaeaBlockPopulator {
|
|||||||
List<Block> blocks = new ArrayList<>();
|
List<Block> blocks = new ArrayList<>();
|
||||||
for(int y : check) {
|
for(int y : check) {
|
||||||
if(chunk.getBlock(x, y, z).getType().isSolid() && chunk.getBlock(x, y + 1, z).getType().isAir()) {
|
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;
|
return blocks;
|
||||||
|
|||||||
Reference in New Issue
Block a user