diff options
author | RealBadAngel <mk@realbadangel.pl> | 2013-07-05 06:20:28 -0700 |
---|---|---|
committer | RealBadAngel <mk@realbadangel.pl> | 2013-07-05 06:20:28 -0700 |
commit | b1d668fa3b2088b133f519c1c10388cf60b49322 (patch) | |
tree | 7a023147622f284d33e4b3fe9c35944d09608949 /unified_inventory | |
parent | 73209cc37d61e3c90dbd0c441228faa0c8f312dc (diff) | |
parent | ce5dfa311ebc1347e11721c21a83b808a5bbccbd (diff) |
Merge pull request #40 from m97/indev
Add extractor.
Diffstat (limited to 'unified_inventory')
-rw-r--r-- | unified_inventory/api.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/unified_inventory/api.lua b/unified_inventory/api.lua index 02c08e9..91681b1 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 @@ -558,7 +561,7 @@ unified_inventory.update_recipe = function(player, stack_name, 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 + 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) |