Change tabs to spaces.

develop
Ross Morgan-Linial 2015-05-07 21:51:03 -07:00
parent 51d61d91cb
commit 3001053cef
1 changed files with 9 additions and 9 deletions

@ -203,20 +203,20 @@ for job,flag in pairs(plant_products) do
local itag = 'idx_'..string.lower(flag) local itag = 'idx_'..string.lower(flag)
job_outputs[job] = function(callback, job) job_outputs[job] = function(callback, job)
local mat_type, mat_index = -1, -1 local mat_type, mat_index = -1, -1
local seed_type, seed_index = -1, -1 local seed_type, seed_index = -1, -1
local mat = dfhack.matinfo.decode(job.job_items[0]) local mat = dfhack.matinfo.decode(job.job_items[0])
if mat and mat.plant and mat.plant.flags[flag] then if mat and mat.plant and mat.plant.flags[flag] then
mat_type = mat.plant.material_defs[ttag] mat_type = mat.plant.material_defs[ttag]
mat_index = mat.plant.material_defs[itag] mat_index = mat.plant.material_defs[itag]
seed_type = mat.plant.material_defs['type_seed'] seed_type = mat.plant.material_defs['type_seed']
seed_index = mat.plant.material_defs['idx_seed'] seed_index = mat.plant.material_defs['idx_seed']
end end
local mat_mask = { } local mat_mask = { }
if flag ~= 'LEAVES' then if flag ~= 'LEAVES' then
mat_mask.plant = true mat_mask.plant = true
end end
default_output(callback, job, mat_type, mat_index, mat_mask) default_output(callback, job, mat_type, mat_index, mat_mask)
callback{ item_type = df.item_type.SEEDS, mat_type = seed_type, mat_index = seed_index } callback{ item_type = df.item_type.SEEDS, mat_type = seed_type, mat_index = seed_index }
end end
end end