fix
This commit is contained in:
parent
85a9618dc0
commit
3b1fe43deb
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue