Add compressing method to UI
authorRealBadAngel <mk@realbadangel.pl>
Wed, 17 Jul 2013 09:54:52 +0000 (11:54 +0200)
committerRealBadAngel <mk@realbadangel.pl>
Wed, 17 Jul 2013 09:54:52 +0000 (11:54 +0200)
unified_inventory/api.lua

index e386a767eb3c398f578d3803d5c1abf76031b9dd..5d04d62b9880738077aedcd2184891edda627025 100644 (file)
@@ -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)