worldedit: Document inner working of worldedit.keep_loaded

master
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
1 changed files with 3 additions and 0 deletions

View File

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