[Fix] Crash when erroding
This commit is contained in:
parent
e35fe997c1
commit
600bb6f9ac
1 changed files with 1 additions and 0 deletions
|
@ -261,6 +261,7 @@ public class StructureErode {
|
|||
for (int z = bounds.minZ(); z <= bounds.maxZ(); z++) {
|
||||
mut.setZ(z);
|
||||
BlockState top = BiomeAPI.findTopMaterial(world.getBiome(mut)).orElse(defaultBlock);
|
||||
if (top == null) continue;
|
||||
for (int y = bounds.maxY(); y >= bounds.minY(); y--) {
|
||||
mut.setY(y);
|
||||
BlockState state = world.getBlockState(mut);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue