diff options
-rw-r--r-- | corn.lua | 6 | ||||
-rw-r--r-- | init.lua | 2 |
2 files changed, 4 insertions, 4 deletions
@@ -243,7 +243,7 @@ minetest.register_node("crops:corn_top_2", { groups = { snappy=3,flammable=3,flora=1,not_in_creative_inventory=1 }, drop = {}, sounds = default.node_sound_leaves_defaults(), - + on_dig = function(pos, node, digger) local below = {x = pos.x, y = pos.y - 1, z = pos.z} if not minetest.get_node(below).name == "crops:base_2" then @@ -282,7 +282,7 @@ minetest.register_node("crops:corn_top_3", { groups = { snappy=3,flammable=3,flora=1,not_in_creative_inventory=1 }, drop = {}, sounds = default.node_sound_leaves_defaults(), - + on_dig = function(pos, node, digger) local below = { x = pos.x, y = pos.y - 1, z = pos.z } local meta = minetest.get_meta(below) @@ -312,7 +312,7 @@ minetest.register_node("crops:corn_top_4", { groups = { snappy=3,flammable=3,flora=1,not_in_creative_inventory=1 }, drop = {}, sounds = default.node_sound_leaves_defaults(), - + on_dig = function(pos, node, digger) local below = {x = pos.x, y = pos.y - 1, z = pos.z} if minetest.get_node(below).name == "crops:corn_base_3" then @@ -341,7 +341,7 @@ if crops.settings.hydration then water = math.min(100, water + 1) end end - + if minetest.get_node_light(pos, nil) < plant.properties.night then -- compensate for light: at night give some water back to the plant water = math.min(100, water + 1) |