summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAuke Kok <sofar@foo-projects.org>2015-11-25 23:57:23 -0800
committerAuke Kok <sofar@foo-projects.org>2015-11-25 23:57:23 -0800
commitaf91e433ec9c8afc9b203d98bc54ad77940d898b (patch)
tree53c4168cf5e074479049026f1dc18f6d91df671e
parentf60d5c34c892f742f6974b04827d3501a157c3aa (diff)
Typo...
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
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