oops, missed pasting the correction of allocate return function

This commit is contained in:
dgm3333 2014-05-26 22:06:10 +01:00
parent e11b0b3366
commit d3b43e1d60
1 changed files with 2 additions and 2 deletions

View File

@ -89,11 +89,12 @@ worldedit.allocate = function(originpos, value)
local originx, originy, originz = originpos.x, originpos.y, originpos.z
local count = 0
local version = worldedit.valueversion(value)
local missingMods = ""
if version == 1 or version == 2 then --flat table format
--obtain the node table
local get_tables = loadstring(value)
if get_tables then --error loading value
return originpos, originpos, count
return originpos, originpos, count, missingMods
end
local tables = get_tables()
@ -166,7 +167,6 @@ worldedit.allocate = function(originpos, value)
-- The following loop sets up pos1 and pos2 to encompass the boundary of the region,
-- and checks all nodes reference mods present in the current world. If they are not present, they are returned for processing if required.
count = #nodes
local missingMods = ""
for index = 1, count do
local entry = nodes[index]
x, y, z = originx + entry.x, originy + entry.y, originz + entry.z