mirror of
https://codeberg.org/tenplus1/farming.git
synced 2025-03-31 01:30:40 +02:00
fix next stage bug
This commit is contained in:
parent
1416f6e615
commit
b8c3d40e88
6
init.lua
6
init.lua
@ -12,7 +12,7 @@ local S = minetest.get_translator("farming")
|
||||
|
||||
farming = {
|
||||
mod = "redo",
|
||||
version = "20240924",
|
||||
version = "20250327",
|
||||
path = minetest.get_modpath("farming"),
|
||||
select = {type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}},
|
||||
select_final = {type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -2.5/16, 0.5}},
|
||||
@ -516,7 +516,7 @@ end
|
||||
|
||||
-- Function to register plants (default farming compatibility)
|
||||
|
||||
farming.register_plant = function(name, def)
|
||||
function farming.register_plant(name, def)
|
||||
|
||||
if not def.steps then return nil end
|
||||
|
||||
@ -556,7 +556,7 @@ farming.register_plant = function(name, def)
|
||||
local def = minetest.registered_nodes[mname .. ":" .. pname .. "_1"]
|
||||
|
||||
if def then
|
||||
minetest.swap_node(pos, {name = def.next_plant, param2 = def.place_param2})
|
||||
minetest.set_node(pos, {name = def.name, param2 = def.place_param2})
|
||||
end
|
||||
end,
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user