summaryrefslogtreecommitdiff
path: root/unified_inventory
diff options
context:
space:
mode:
authorShadowNinja <noreply@gmail.com>2013-07-08 16:53:44 -0400
committerShadowNinja <noreply@gmail.com>2013-07-08 16:57:56 -0400
commit19c9a0443b17176a27329b69ee16fe28d7be6fd8 (patch)
tree9125c9ca38798426a1bf01a247e98bb532ec9b6b /unified_inventory
parent3a3700537baa748e459258385d27bb79ab391546 (diff)
parent79e8d26989cf20108bc69cf3b1da32655d57735a (diff)
Merge branch 'indev'
Conflicts: technic/alloy_furnace.lua technic/alloy_furnaces_commons.lua technic/battery_box.lua technic/battery_box_hv.lua technic/battery_box_mv.lua technic/chainsaw.lua technic/cnc.lua technic/cnc_nodes.lua technic/electric_furnace.lua technic/grinder.lua technic/init.lua technic/solar_array_hv.lua technic/solar_array_lv.lua technic/solar_array_mv.lua technic/solar_panel.lua unified_inventory/api.lua unified_inventory/depends.txt
Diffstat (limited to 'unified_inventory')
-rw-r--r--unified_inventory/api.lua13
-rw-r--r--unified_inventory/depends.txt1
2 files changed, 11 insertions, 3 deletions
diff --git a/unified_inventory/api.lua b/unified_inventory/api.lua
index 5ff16fa..e386a76 100644
--- a/unified_inventory/api.lua
+++ b/unified_inventory/api.lua
@@ -230,7 +230,10 @@ unified_inventory.get_formspec = function(player,page)
end
if craft.type == "alloy" then
method="Alloy cooking"
- end
+ end
+ if craft.type == "extracting" then
+ method="Extracting"
+ end
formspec = formspec.."label[6,3;"..method.."]"
end
@@ -557,8 +560,12 @@ unified_inventory.update_recipe = function(player, stack_name, alternate)
local craft = crafts[alternate]
inv:set_stack("output", 1, craft.output)
local items=craft.items
- -- cook, fuel, grinding recipes
- if craft.type == "cooking" or craft.type == "fuel" or craft.type == "grinding" then
+
+ -- cooking, fuel, grinding, and extracting recipes
+ if craft.type == "cooking" or
+ craft.type == "fuel" or
+ craft.type == "grinding" or
+ craft.type == "extracting" then
def=unified_inventory.find_item_def(craft["items"][1])
if def then
inv:set_stack("build", 1, def)
diff --git a/unified_inventory/depends.txt b/unified_inventory/depends.txt
index 8b13789..45b4a33 100644
--- a/unified_inventory/depends.txt
+++ b/unified_inventory/depends.txt
@@ -1 +1,2 @@
+creative