mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2025-02-03 13:50:23 +01:00
Fixed //save not sorting positions (thanks to cosarara97).
This commit is contained in:
parent
5869ccf7f8
commit
6a6f37460d
@ -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
|
--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)
|
worldedit.serialize = function(pos1, pos2)
|
||||||
|
local pos1, pos2 = worldedit.sort_pos(pos1, pos2)
|
||||||
local pos = {x=pos1.x, y=0, z=0}
|
local pos = {x=pos1.x, y=0, z=0}
|
||||||
local count = 0
|
local count = 0
|
||||||
local result = {}
|
local result = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user