mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2025-01-08 09:00:29 +01:00
fix
This commit is contained in:
parent
5b19c17117
commit
d42ac33d62
@ -337,9 +337,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
|
||||||
@ -382,9 +382,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
Block a user