summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index cd65e0c..0880299 100644
--- a/init.lua
+++ b/init.lua
@@ -75,6 +75,8 @@ crops.can_grow = function(pos)
return false
end
end
+ -- growing costs water!
+ meta:set_int("crops_water", math.max(0, water - 10))
-- allow the plant to grow
return true