mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2024-09-28 23:40:36 +02:00
Update serialization.lua
This commit is contained in:
parent
b2e086f9ec
commit
e3aaeaeaa0
|
@ -197,6 +197,7 @@ end
|
||||||
function worldedit.allocate(origin_pos, value)
|
function worldedit.allocate(origin_pos, value)
|
||||||
local nodes = load_schematic(value)
|
local nodes = load_schematic(value)
|
||||||
if not nodes then return nil end
|
if not nodes then return nil end
|
||||||
|
if #nodes == 0 then return nil end
|
||||||
return worldedit.allocate_with_nodes(origin_pos, nodes)
|
return worldedit.allocate_with_nodes(origin_pos, nodes)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user