Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Default/trees: Make 'can grow' public to enable over-riding
  • Loading branch information
paramat committed Nov 23, 2015
1 parent 0d49978 commit 135d80e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mods/default/trees.lua
Expand Up @@ -6,7 +6,7 @@

local random = math.random

local function can_grow(pos)
function default.can_grow(pos)
local node_under = minetest.get_node_or_nil({x = pos.x, y = pos.y - 1, z = pos.z})
if not node_under then
return false
Expand All @@ -32,7 +32,7 @@ minetest.register_abm({
interval = 10,
chance = 50,
action = function(pos, node)
if not can_grow(pos) then
if not default.can_grow(pos) then
return
end

Expand Down

0 comments on commit 135d80e

Please sign in to comment.