make sure that any block about to be scanned is definitely loaded (in

case the engine has unloaded the block because the player wandered off
for too long)
This commit is contained in:
Vanessa Dannenberg 2021-04-07 04:55:57 -04:00
parent 531577afcf
commit 6009f261c2
1 changed files with 1 additions and 0 deletions

View File

@ -472,6 +472,7 @@ function biome_lib.generate_block(shutting_down)
if not biome_lib.pos_hash then -- we need to read the maplock and get the surfaces list
biome_lib.pos_hash = {}
minetest.load_area(minp)
if not confirm_block_surroundings(minp)
and not shutting_down then -- if any neighbors appear not to be loaded, skip this block for now