1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2024-11-18 00:18:13 +01:00

Update serialization.lua

This commit is contained in:
TalkLounge 2019-06-15 16:32:38 +02:00 committed by GitHub
parent d1cbd420bb
commit 153b9b78d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -227,6 +227,7 @@ end
function worldedit.deserialize(origin_pos, value)
local nodes = load_schematic(value)
if not nodes then return nil end
if #nodes == 0 then return #nodes end
local pos1, pos2 = worldedit.allocate_with_nodes(origin_pos, nodes)
worldedit.keep_loaded(pos1, pos2)