From aa4a70d237db22b587d46a50a21d1a71a445874e Mon Sep 17 00:00:00 2001 From: Anthony Zhang Date: Sun, 21 Oct 2012 17:49:43 -0400 Subject: 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. --- worldedit/visualization.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'worldedit/visualization.lua') 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 -- cgit v1.2.3