diff options
author | Auke Kok <sofar@foo-projects.org> | 2016-12-15 11:47:34 -0800 |
---|---|---|
committer | Auke Kok <sofar@foo-projects.org> | 2016-12-15 11:47:34 -0800 |
commit | feb203fb40bb418dad063b7fe7de04185e8c6537 (patch) | |
tree | c6e7defd4e34b270c669e25469789c129068a4b6 | |
parent | c5beed1ba6dcea1892e398e9003de6b71bafe444 (diff) |
Fix whitespace.
-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) |