1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2024-12-28 11:40:16 +01:00

use set_node so 3rd party mod timers can activate

This commit is contained in:
tenplus1 2023-09-15 07:35:47 +01:00
parent 85c5c9abab
commit 98f0581c17

View File

@ -7,7 +7,7 @@
farming = { farming = {
mod = "redo", mod = "redo",
version = "20230912", version = "20230915",
path = minetest.get_modpath("farming"), path = minetest.get_modpath("farming"),
select = { select = {
type = "fixed", type = "fixed",
@ -442,7 +442,7 @@ function farming.plant_growth_timer(pos, elapsed, node_name)
local p2 = minetest.registered_nodes[stages.stages_left[growth] ].place_param2 or 1 local p2 = minetest.registered_nodes[stages.stages_left[growth] ].place_param2 or 1
minetest.swap_node(pos, {name = stages.stages_left[growth], param2 = p2}) minetest.set_node(pos, {name = stages.stages_left[growth], param2 = p2})
else else
return true return true
end end