Register craft types with unified_inventory

This commit is contained in:
Zefram
2014-04-30 00:19:17 +01:00
parent c9bf799e32
commit 9b64ffea8c
8 changed files with 54 additions and 1 deletions

View File

@ -3,6 +3,14 @@ technic.compressor_recipes = {}
local S = technic.getter
if unified_inventory.register_craft_type then
unified_inventory.register_craft_type("compressing", {
description = S("Compressing"),
height = 1,
width = 1,
})
end
technic.register_compressor_recipe = function(src, src_count, dst, dst_count)
technic.compressor_recipes[src] = {src_count = src_count, dst_name = dst, dst_count = dst_count}
if unified_inventory then

View File

@ -3,6 +3,14 @@ technic.extractor_recipes ={}
local S = technic.getter
if unified_inventory.register_craft_type then
unified_inventory.register_craft_type("extracting", {
description = S("Extracting"),
height = 1,
width = 1,
})
end
technic.register_extractor_recipe = function(src, src_count, dst, dst_count)
technic.extractor_recipes[src] = {src_count = src_count, dst_name = dst, dst_count = dst_count}
if unified_inventory then