RealBadAngel
2013-07-25 d8ec3f8bbee5c3c489e4c5740fc8c84449eb86c3
technic/machines/mv/grinder.lua
@@ -41,6 +41,7 @@
         local inv=meta:get_inventory()
         return inv:room_for_item("src",stack)
      end,
      connect_sides = {left=1, right=1, back=1, top=1, bottom=1},
   },
   legacy_facedir_simple = true,
   sounds = default.node_sound_wood_defaults(),
@@ -86,6 +87,7 @@
            local inv=meta:get_inventory()
            return inv:room_for_item("src",stack)
         end,
         connect_sides = {left=1, right=1, back=1, top=1, bottom=1},
      },
      legacy_facedir_simple = true,
      sounds = default.node_sound_wood_defaults(),
@@ -237,8 +239,7 @@
         -- The machine shuts down if we have nothing to grind and no tube is connected
         -- or if we have nothing to send with a tube connected.
         if    (not output_tube_connected and inv:is_empty("src"))
         or (    output_tube_connected and inv:is_empty("dst")) then
         if inv:is_empty("src") and (not output_tube_connected or inv:is_empty("dst")) then
            next_state = 1
         end