Add compressing method to UI

This commit is contained in:
RealBadAngel 2013-07-17 11:54:52 +02:00
parent 922d2554a9
commit 55a0a40963

@ -234,6 +234,9 @@ unified_inventory.get_formspec = function(player,page)
if craft.type == "extracting" then if craft.type == "extracting" then
method="Extracting" method="Extracting"
end end
if craft.type == "compressing" then
method="Compressing"
end
formspec = formspec.."label[6,3;"..method.."]" formspec = formspec.."label[6,3;"..method.."]"
end end
@ -565,7 +568,8 @@ unified_inventory.update_recipe = function(player, stack_name, alternate)
if craft.type == "cooking" or if craft.type == "cooking" or
craft.type == "fuel" or craft.type == "fuel" or
craft.type == "grinding" 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]) def=unified_inventory.find_item_def(craft["items"][1])
if def then if def then
inv:set_stack("build", 1, def) inv:set_stack("build", 1, def)