Update serialization.lua

This commit is contained in:
TalkLounge 2019-06-15 17:05:23 +02:00 committed by GitHub
parent b2e086f9ec
commit e3aaeaeaa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -197,6 +197,7 @@ end
function worldedit.allocate(origin_pos, value)
local nodes = load_schematic(value)
if not nodes then return nil end
if #nodes == 0 then return nil end
return worldedit.allocate_with_nodes(origin_pos, nodes)
end