Skip to content

Commit

Permalink
Fix //load with 0 nodes (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
TalkLounge authored and sfan5 committed Jun 15, 2019
1 parent d1cbd42 commit b2e086f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions worldedit/serialization.lua
Expand Up @@ -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)
Expand Down

0 comments on commit b2e086f

Please sign in to comment.