fix edge case infinite loop in mesher
This commit is contained in:
parent
99d05fc94b
commit
50907138f7
1 changed files with 1 additions and 1 deletions
|
|
@ -161,7 +161,7 @@ const handleMessage = data => {
|
|||
blockPos.z = blockZ
|
||||
blockPos.y = world.config.worldMaxY
|
||||
let block = world.getBlock(blockPos)
|
||||
while (block && INVISIBLE_BLOCKS.has(block.name)) {
|
||||
while (block && INVISIBLE_BLOCKS.has(block.name) && blockPos.y > world.config.worldMinY) {
|
||||
blockPos.y -= 1
|
||||
block = world.getBlock(blockPos)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue