summaryrefslogtreecommitdiff
path: root/unified_inventory
diff options
context:
space:
mode:
authorRealBadAngel <mk@realbadangel.pl>2013-07-17 11:54:52 +0200
committerRealBadAngel <mk@realbadangel.pl>2013-07-17 11:54:52 +0200
commit55a0a409636a320eff2c65d410e003a9a191cf05 (patch)
tree34a5cde3730121797ba9ff6563e0fbdcfb5f1db4 /unified_inventory
parent922d2554a94972f2a217978bf6ee790d06b226ad (diff)
Add compressing method to UI
Diffstat (limited to 'unified_inventory')
-rw-r--r--unified_inventory/api.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/unified_inventory/api.lua b/unified_inventory/api.lua
index e386a76..5d04d62 100644
--- a/unified_inventory/api.lua
+++ b/unified_inventory/api.lua
@@ -233,6 +233,9 @@ unified_inventory.get_formspec = function(player,page)
end
if craft.type == "extracting" then
method="Extracting"
+ end
+ if craft.type == "compressing" then
+ method="Compressing"
end
formspec = formspec.."label[6,3;"..method.."]"
end
@@ -565,7 +568,8 @@ unified_inventory.update_recipe = function(player, stack_name, alternate)
if craft.type == "cooking" or
craft.type == "fuel" or
craft.type == "grinding" or
- craft.type == "extracting" then
+ craft.type == "extracting" or
+ craft.type == "compressing" then
def=unified_inventory.find_item_def(craft["items"][1])
if def then
inv:set_stack("build", 1, def)