Zefram
2014-07-07 5e4a87b92599aa0fc9a56081209c930d08a2c3bd
technic/machines/LV/solar_panel.lua
@@ -9,7 +9,7 @@
            "technic_solar_panel_side.png", "technic_solar_panel_side.png",   "technic_solar_panel_side.png"},
   groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
   sounds = default.node_sound_wood_defaults(),
       description = S("Solar Panel"),
       description = S("Small Solar %s Generator"):format("LV"),
   active = false,
   drawtype = "nodebox",
   paramtype = "light",
@@ -21,7 +21,7 @@
   on_construct = function(pos)
      local meta = minetest.get_meta(pos)
      meta:set_int("LV_EU_supply", 0)
      meta:set_string("infotext", S("Solar Panel"))
      meta:set_string("infotext", S("Small Solar %s Generator"):format("LV"))
   end,
})
@@ -29,7 +29,7 @@
   output = 'technic:solar_panel',
   recipe = {
      {'technic:doped_silicon_wafer', 'technic:doped_silicon_wafer', 'technic:doped_silicon_wafer'},
      {'default:steel_ingot',         'technic:lv_cable0',           'default:steel_ingot'},
      {'technic:fine_silver_wire',    'technic:lv_cable0',           'mesecons_materials:glue'},
   }
})
@@ -48,7 +48,7 @@
      -- To take care of some of it solar panels do not work outside daylight hours or if
      -- built below -10m
      local pos1 = {x=pos.x, y=pos.y+1, z=pos.z}
      local machine_name = S("Solar Panel")
      local machine_name = S("Small Solar %s Generator"):format("LV")
      local light = minetest.get_node_light(pos1, nil)
      local time_of_day = minetest.get_timeofday()