From 674d6473e4b13676aa6bc9e45a4113e3bca89078 Mon Sep 17 00:00:00 2001 From: Uberi Date: Fri, 20 Dec 2013 18:41:13 -0500 Subject: Improve node inspector to show player axis, replace //scale with //stretch, which supports per-axis stretching (full backwards compatibility retained), and secure schematic file loading functions. --- worldedit/compatibility.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'worldedit/compatibility.lua') diff --git a/worldedit/compatibility.lua b/worldedit/compatibility.lua index eb81eea..ff3447f 100644 --- a/worldedit/compatibility.lua +++ b/worldedit/compatibility.lua @@ -18,3 +18,6 @@ worldedit.metaload = function(originpos, filename) local data = file:read("*a") return worldedit.deserialize(originpos, data) end +worldedit.scale = function(pos1, pos2, factor) + return worldedit.stretch(pos1, pos2, factor, factor, factor) +end \ No newline at end of file -- cgit v1.2.3