From feb203fb40bb418dad063b7fe7de04185e8c6537 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Thu, 15 Dec 2016 11:47:34 -0800 Subject: Fix whitespace. --- corn.lua | 6 +++--- init.lua | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/corn.lua b/corn.lua index 7ef9f4c..c49fa2c 100644 --- a/corn.lua +++ b/corn.lua @@ -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 diff --git a/init.lua b/init.lua index 537edd9..ac62799 100644 --- a/init.lua +++ b/init.lua @@ -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) -- cgit v1.2.3