]> git.lizzy.rs Git - worldedit.git/blobdiff - Chat Commands.md
Even bigger speed gains by using LuaVoxelManipulator in a few choice places! Faster...
[worldedit.git] / Chat Commands.md
index 9951ca3bcb46b02161aad40cccc79ff61466f8fa..6bd1772628805a4afcdef961fe67dedcb811db38 100644 (file)
@@ -276,8 +276,8 @@ Executes <code> as a Lua chunk in the global namespace.
 \r
 Executes <code> as a Lua chunk in the global namespace with the variable pos available, for each node in the current WorldEdit region.\r
 \r
-    //luatransform minetest.env:add_node(pos, {name="default:stone"})\r
-    //luatransform if minetest.env:get_node(pos).name == "air" then minetest.env:add_node(pos, {name="default:water_source"})\r
+    //luatransform minetest.add_node(pos, {name="default:stone"})\r
+    //luatransform if minetest.get_node(pos).name == "air" then minetest.env:add_node(pos, {name="default:water_source"})\r
 \r
 ### //mtschemcreate <file>\r
 \r