summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAuke Kok <sofar@foo-projects.org>2016-12-15 11:47:34 -0800
committerAuke Kok <sofar@foo-projects.org>2016-12-15 11:47:34 -0800
commitfeb203fb40bb418dad063b7fe7de04185e8c6537 (patch)
treec6e7defd4e34b270c669e25469789c129068a4b6
parentc5beed1ba6dcea1892e398e9003de6b71bafe444 (diff)
Fix whitespace.
-rw-r--r--corn.lua6
-rw-r--r--init.lua2
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)