diff options
Diffstat (limited to 'mesecons/legacy.lua')
-rw-r--r-- | mesecons/legacy.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mesecons/legacy.lua b/mesecons/legacy.lua index 6d8ccca..ca496f1 100644 --- a/mesecons/legacy.lua +++ b/mesecons/legacy.lua @@ -28,3 +28,10 @@ function mesecon.receptor_off(self, pos, rules) mesecon.queue:add_action(pos, "receptor_off", {rules}, nil, rules) end +-- Un-forceload any forceloaded mapblocks from older versions of Mesecons which +-- used forceloading instead of VoxelManipulators. +local old_forceloaded_blocks = mesecon.file2table("mesecon_forceloaded") +for hash, _ in pairs(old_forceloaded_blocks) do + minetest.forceload_free_block(unhash_blockpos(hash)) +end +os.remove(minetest.get_worldpath()..DIR_DELIM.."mesecon_forceloaded") |