summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Zhang <azhang9@gmail.com>2012-07-16 12:37:02 -0400
committerAnthony Zhang <azhang9@gmail.com>2012-07-16 12:37:02 -0400
commit6a6f37460de55ad23cd1f4121a7a3d3b0e91901d (patch)
treec8e57fef2a47f3ec0ce79666ff6b64452b9f7ec9
parent5869ccf7f8000dbf8682a67bed357ff09cd0f929 (diff)
Fixed //save not sorting positions (thanks to cosarara97).
-rw-r--r--functions.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/functions.lua b/functions.lua
index 35015a5..b752b06 100644
--- a/functions.lua
+++ b/functions.lua
@@ -204,6 +204,7 @@ end
--converts the region defined by positions `pos1` and `pos2` into a single string, returning the serialized data and the number of nodes serialized
worldedit.serialize = function(pos1, pos2)
+ local pos1, pos2 = worldedit.sort_pos(pos1, pos2)
local pos = {x=pos1.x, y=0, z=0}
local count = 0
local result = {}