diff options
author | Anthony Zhang <azhang9@gmail.com> | 2012-10-21 17:49:43 -0400 |
---|---|---|
committer | Anthony Zhang <azhang9@gmail.com> | 2012-10-21 17:49:43 -0400 |
commit | aa4a70d237db22b587d46a50a21d1a71a445874e (patch) | |
tree | 042d48b7a83e28e41d25f03b481d6c08a56c373d /worldedit/visualization.lua | |
parent | 5f598db3e6ef1f30cdba9cda4b2e0f32c658de16 (diff) |
Rename //find to //highlight and worldedit.find to worldedit.highlight, add //allocate and worldedit.allocate as well as related documentation. Improve documentation by fixing a few mistakes and adding return signatures.
Diffstat (limited to 'worldedit/visualization.lua')
-rw-r--r-- | worldedit/visualization.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/worldedit/visualization.lua b/worldedit/visualization.lua index f3d4a35..3c1a2db 100644 --- a/worldedit/visualization.lua +++ b/worldedit/visualization.lua @@ -94,8 +94,8 @@ worldedit.suppress = function(pos1, pos2, nodename) return count
end
---finds all instances of `nodename` in a region defined by positions `pos1` and `pos2` by non-destructively hiding all other nodes, returning the number of nodes found
-worldedit.find = function(pos1, pos2, nodename)
+--highlights all instances of `nodename` in a region defined by positions `pos1` and `pos2` by non-destructively hiding all other nodes, returning the number of nodes found
+worldedit.highlight = function(pos1, pos2, nodename)
local pos1, pos2 = worldedit.sort_pos(pos1, pos2)
local env = minetest.env
|