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:
parent
531577afcf
commit
6009f261c2
1
init.lua
1
init.lua
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user