mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2024-12-04 13:23:43 +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
|
||||
local content = deserialize_workaround(content)
|
||||
local pos2 = {
|
||||
x = origin_pos.x + tonumber(header[1]),
|
||||
y = origin_pos.y + tonumber(header[2]),
|
||||
z = origin_pos.z + tonumber(header[3]),
|
||||
x = origin_pos.x + tonumber(header[1]) - 1,
|
||||
y = origin_pos.y + tonumber(header[2]) - 1,
|
||||
z = origin_pos.z + tonumber(header[3]) - 1,
|
||||
}
|
||||
local count = 0
|
||||
for _, row in ipairs(content) do
|
||||
@ -382,9 +382,9 @@ function worldedit.deserialize(origin_pos, value)
|
||||
if version == 6 then
|
||||
local content = deserialize_workaround(content)
|
||||
local pos2 = {
|
||||
x = origin_pos.x + tonumber(header[1]),
|
||||
y = origin_pos.y + tonumber(header[2]),
|
||||
z = origin_pos.z + tonumber(header[3]),
|
||||
x = origin_pos.x + tonumber(header[1]) - 1,
|
||||
y = origin_pos.y + tonumber(header[2]) - 1,
|
||||
z = origin_pos.z + tonumber(header[3]) - 1,
|
||||
}
|
||||
worldedit.keep_loaded(origin_pos, pos2)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user