diff options
author | Anthony Zhang <azhang9@gmail.com> | 2014-07-24 11:19:13 -0400 |
---|---|---|
committer | Anthony Zhang <azhang9@gmail.com> | 2014-07-24 11:19:13 -0400 |
commit | 44c9576f8a5d5dce8b7ae54aaa617c1942b5a344 (patch) | |
tree | 2d561156293349f76af39e819793def1fc95f2eb /worldedit/manipulations.lua | |
parent | 82ef580fae5634c48c0db1caf27966fdd046a64d (diff) | |
parent | e383e8ce006cb16cf6f0178c9fca93cdb5069187 (diff) |
Merge pull request #53 from ShadowNinja/fix-lua-runtime-error
Fix runtime error checking with lua* commands
Diffstat (limited to 'worldedit/manipulations.lua')
-rw-r--r-- | worldedit/manipulations.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/worldedit/manipulations.lua b/worldedit/manipulations.lua index 2e3e369..71eef5d 100644 --- a/worldedit/manipulations.lua +++ b/worldedit/manipulations.lua @@ -1,7 +1,9 @@ worldedit = worldedit or {}
local minetest = minetest --local copy of global
---modifies positions `pos1` and `pos2` so that each component of `pos1` is less than or equal to its corresponding conent of `pos2`, returning two new positions
+-- Copies and modifies positions `pos1` and `pos2` so that each component of
+-- `pos1` is less than or equal to the corresponding component of `pos2`.
+-- Returns the new positions.
worldedit.sort_pos = function(pos1, pos2)
pos1 = {x=pos1.x, y=pos1.y, z=pos1.z}
pos2 = {x=pos2.x, y=pos2.y, z=pos2.z}
|