From af91e433ec9c8afc9b203d98bc54ad77940d898b Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Wed, 25 Nov 2015 23:57:23 -0800 Subject: Typo... --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index e205f45..24a52fa 100644 --- a/init.lua +++ b/init.lua @@ -105,7 +105,7 @@ crops.plant = function(pos, node) minetest.set_node(pos, node) local meta = minetest.get_meta(pos) local plant = find_plant(node) - meta:set_int("crops_water", max(plant.properties.waterstart, 1)) + meta:set_int("crops_water", math.max(plant.properties.waterstart, 1)) meta:set_int("crops_damage", 0) end -- cgit v1.2.3