Default/functions: Fix cacti not growing when rotation is 1-3
authorparamat <mat.gregory@virginmedia.com>
Sun, 7 Jun 2015 02:31:23 +0000 (03:31 +0100)
committerparamat <mat.gregory@virginmedia.com>
Sun, 7 Jun 2015 03:39:25 +0000 (04:39 +0100)
mods/default/functions.lua

index cd4477b4138fd40f37ca997faf1dce39ebdfbb15..3525c1a8abdce3484d135a02bff3424d9bb36bde 100644 (file)
@@ -124,7 +124,7 @@ minetest.register_abm({
 --
 
 function default.grow_cactus(pos, node)
-       if node.param2 ~= 0 then
+       if node.param2 >= 4 then
                return
        end
        pos.y = pos.y-1