RealBadAngel
2013-07-17 55a0a409636a320eff2c65d410e003a9a191cf05
Add compressing method to UI
1 files modified
6 ■■■■ changed files
unified_inventory/api.lua 6 ●●●● patch | view | raw | blame | history
unified_inventory/api.lua
@@ -233,6 +233,9 @@
                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 @@
    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)