This commit is contained in:
sfan5 2019-09-09 21:03:24 +02:00
parent 85a9618dc0
commit 3b1fe43deb
1 changed files with 6 additions and 6 deletions

View File

@ -335,9 +335,9 @@ function worldedit.allocate(origin_pos, value)
if version == 6 then if version == 6 then
local content = deserialize_workaround(content) local content = deserialize_workaround(content)
local pos2 = { local pos2 = {
x = origin_pos.x + tonumber(header[1]), x = origin_pos.x + tonumber(header[1]) - 1,
y = origin_pos.y + tonumber(header[2]), y = origin_pos.y + tonumber(header[2]) - 1,
z = origin_pos.z + tonumber(header[3]), z = origin_pos.z + tonumber(header[3]) - 1,
} }
local count = 0 local count = 0
for _, row in ipairs(content) do for _, row in ipairs(content) do
@ -380,9 +380,9 @@ function worldedit.deserialize(origin_pos, value)
if version == 6 then if version == 6 then
local content = deserialize_workaround(content) local content = deserialize_workaround(content)
local pos2 = { local pos2 = {
x = origin_pos.x + tonumber(header[1]), x = origin_pos.x + tonumber(header[1]) - 1,
y = origin_pos.y + tonumber(header[2]), y = origin_pos.y + tonumber(header[2]) - 1,
z = origin_pos.z + tonumber(header[3]), z = origin_pos.z + tonumber(header[3]) - 1,
} }
worldedit.keep_loaded(origin_pos, pos2) worldedit.keep_loaded(origin_pos, pos2)