Skip to content

Commit

Permalink
fix eating of sunflower bread
Browse files Browse the repository at this point in the history
  • Loading branch information
tenplus1 committed Nov 8, 2021
1 parent f8533c4 commit b84374b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
6 changes: 4 additions & 2 deletions crops/cocoa.lua
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,12 @@ local def = {
},
sounds = default.node_sound_leaves_defaults(),
growth_check = function(pos, node_name)

if minetest.find_node_near(pos, 1, {"default:jungletree"}) then
return false
return false -- can grow
end
return true

return true -- cannot grow
end
}

Expand Down
5 changes: 0 additions & 5 deletions crops/sunflower.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,6 @@ minetest.register_craftitem("farming:sunflower_bread", {
groups = {food_bread = 1, flammable = 2}
})

minetest.register_craftitem("farming:sunflower_bread", {
description = S("Sunflower Bread"),
inventory_image = "farming_sunflower_bread.png"
})

minetest.register_craft({
output = "farming:sunflower_bread",
recipe = {{"group:food_sunflower_seeds_toasted", "group:food_bread", "group:food_sunflower_seeds_toasted"}}
Expand Down
1 change: 0 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,6 @@ function farming.plant_growth_timer(pos, elapsed, node_name)
if max_growth == 1 or lambda < 2.0 then

local light = (minetest.get_node_light(light_pos) or 0)
--print ("light level:", light)

if light < MIN_LIGHT or light > MAX_LIGHT then
return true
Expand Down

0 comments on commit b84374b

Please sign in to comment.