worldedit: Document inner working of worldedit.keep_loaded

This commit is contained in:
sfan5 2020-05-25 19:48:54 +02:00 committed by GitHub
parent 867cd6edc7
commit 2f535dd053
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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