Carter Kolwey
2014-01-11 ebc114df71cc20868afbd3c6dea4039dc14c1a0e
technic/machines/register/grinder.lua
@@ -120,7 +120,7 @@
         local result = technic.get_grinder_recipe(inv:get_stack("src", 1))
         if not result then
            hacky_swap_node(pos, machine_node)
            technic.swap_node(pos, machine_node)
            meta:set_string("infotext", S("%s Idle"):format(machine_name))
            meta:set_int(tier.."_EU_demand", 0)
            return
@@ -128,11 +128,11 @@
      
         if eu_input < machine_demand[EU_upgrade+1] then
            -- Unpowered - go idle
            hacky_swap_node(pos, machine_node)
            technic.swap_node(pos, machine_node)
            meta:set_string("infotext", S("%s Unpowered"):format(machine_name))
         elseif eu_input >= machine_demand[EU_upgrade+1] then
            -- Powered   
            hacky_swap_node(pos, machine_node.."_active")
            technic.swap_node(pos, machine_node.."_active")
            meta:set_string("infotext", S("%s Active"):format(machine_name))
            meta:set_int("src_time", meta:get_int("src_time") + 1)