From 2f535dd0532332978e10ec543c204f965a079a73 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 25 May 2020 19:48:54 +0200 Subject: [PATCH] worldedit: Document inner working of worldedit.keep_loaded --- worldedit/common.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/worldedit/common.lua b/worldedit/common.lua index c62957f..9a2215d 100644 --- a/worldedit/common.lua +++ b/worldedit/common.lua @@ -46,6 +46,9 @@ end function worldedit.keep_loaded(pos1, pos2) + -- Create a vmanip and read the area from map, this + -- causes all MapBlocks to be loaded into memory. + -- This doesn't actually *keep* them loaded, unlike the name implies. local manip = minetest.get_voxel_manip() manip:read_from_map(pos1, pos2) end