1
0
mirror of https://github.com/mt-mods/biome_lib.git synced 2024-11-13 22:20:21 +01:00

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

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