From 6a6f37460de55ad23cd1f4121a7a3d3b0e91901d Mon Sep 17 00:00:00 2001 From: Anthony Zhang Date: Mon, 16 Jul 2012 12:37:02 -0400 Subject: [PATCH] Fixed //save not sorting positions (thanks to cosarara97). --- functions.lua | 1 + 1 file changed, 1 insertion(+) 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 = {}