]> git.lizzy.rs Git - worldedit.git/blobdiff - worldedit/common.lua
Faster copying using vmanips
[worldedit.git] / worldedit / common.lua
index be9a2c9c412673ba035c49ed2e8df7c0a05aa730..c62957f290953925ebea7e1dfafb5d4bef166c0a 100644 (file)
@@ -107,7 +107,9 @@ end
 
 function mh.finish(manip, data)
        -- Update map
-       manip:set_data(data)
+       if data ~= nil then
+               manip:set_data(data)
+       end
        manip:write_to_map()
        manip:update_map()
 end