Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Default/functions: Fix cacti not growing when rotation is 1-3
  • Loading branch information
paramat committed Jun 7, 2015
1 parent 7786f7f commit 016fa0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/default/functions.lua
Expand Up @@ -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
Expand Down

1 comment on commit 016fa0d

@HybridDog
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use this param2 when setting the new cactus node?
https://github.com/minetest/minetest_game/blob/master/mods/default/functions.lua#L146

lf someone changes one side texture of the cactus, the plant shouldn't be convoluted, but straight.

Please sign in to comment.