Skip to content

Commit

Permalink
Update bonemeal from upstream.
Browse files Browse the repository at this point in the history
  • Loading branch information
dacmot committed Nov 26, 2023
1 parent d27851e commit 00358eb
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 12 deletions.
9 changes: 5 additions & 4 deletions mods/tools/bonemeal/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ end


-- sapling check
local function check_sapling(pos, sapling_node, light_ok)
local function check_sapling(pos, sapling_node, strength, light_ok)

-- what is sapling placed on?
local under = minetest.get_node({
Expand Down Expand Up @@ -128,7 +128,9 @@ local function check_sapling(pos, sapling_node, light_ok)

particle_effect(pos)

grow_tree(pos, saplings[n][2])
if math.random(5 - strength) == 1 then
grow_tree(pos, saplings[n][2])
end

return true
end
Expand Down Expand Up @@ -474,8 +476,7 @@ function bonemeal:on_use(pos, strength, node)
end

-- check for sapling growth
if random(5 - strength) == 1
and check_sapling(pos, node.name, light_ok) then
if check_sapling(pos, node.name, strength, light_ok) then
return true
end

Expand Down
1 change: 0 additions & 1 deletion mods/tools/bonemeal/locale/bonemeal.de.tr
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# textdomain:bonemeal
[MOD] bonemeal loaded=[MOD] bonemeal geladen
Bone=Knochen
Bone Meal=Knochenmehl
Fertiliser=Dünger
Expand Down
1 change: 0 additions & 1 deletion mods/tools/bonemeal/locale/bonemeal.en.tr
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# textdomain:bonemeal
#[MOD] bonemeal loaded=
#Bone=
#Bone Meal=
#Fertiliser=
Expand Down
1 change: 0 additions & 1 deletion mods/tools/bonemeal/locale/bonemeal.es.tr
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# textdomain:bonemeal
[MOD] bonemeal loaded=[MOD] bonemeal cargado
Bone=Hueso
Bone Meal=Comida de hueso
Fertiliser=Fertilizante
Expand Down
1 change: 0 additions & 1 deletion mods/tools/bonemeal/locale/bonemeal.fr.tr
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# textdomain:bonemeal
[MOD] bonemeal loaded=[MOD] bonemeal chargé
Bone=Os
Bone Meal=Poudre d'os
Fertiliser=Engrais
Expand Down
1 change: 0 additions & 1 deletion mods/tools/bonemeal/locale/bonemeal.it.tr
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# textdomain:bonemeal
[MOD] bonemeal loaded=[MOD] bonemeal caricata
Bone=Ossa
Bone Meal=Pasto osseo
Fertiliser=Fertilizzante
Expand Down
1 change: 0 additions & 1 deletion mods/tools/bonemeal/locale/bonemeal.ru.tr
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# textdomain:bonemeal
[MOD] bonemeal loaded=[MOD] костная мука загружена
Bone=Кость
Bone Meal=Костная Мука
Fertiliser=Удобрение
Expand Down
3 changes: 2 additions & 1 deletion mods/tools/bonemeal/mods.lua
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ if minetest.get_modpath("ethereal") then
"flowers:tulip", "flowers:viola", "ethereal:strawberry_7"}},
{"ethereal:gray_dirt", {}, {"ethereal:snowygrass", "", ""}},
{"ethereal:cold_dirt", {}, {"ethereal:snowygrass", "", ""}},
{"ethereal:mushroom_dirt", {}, {"flowers:mushroom_red", "flowers:mushroom_brown", "", "", ""}},
{"ethereal:mushroom_dirt", {}, {"flowers:mushroom_red", "flowers:mushroom_brown",
"ethereal:spore_grass", "ethereal:spore_grass", "", "", ""}},
{"ethereal:jungle_dirt", grass, {"default:junglegrass", "", "", ""}},
{"ethereal:grove_dirt", grass, {"ethereal:fern", "", "", ""}},
{"ethereal:bamboo_dirt", grass, {}}
Expand Down

0 comments on commit 00358eb

Please sign in to comment.