mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-14 15:11:05 +01:00
Remove TODO pending future discussions, revert timer change in composter code
This commit is contained in:
parent
6741c5a809
commit
70e8ba9a89
2 changed files with 4 additions and 3 deletions
|
@ -67,8 +67,7 @@ function mcl_cocoas.grow(pos)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
-- only caller was mcl_dye, now these can be local functions.
|
-- only caller was mcl_dye, consider converting these into local functions.
|
||||||
-- TODO: remove aliases, replace global functions with local functions.
|
|
||||||
local cocoa_place = mcl_cocoas.place
|
local cocoa_place = mcl_cocoas.place
|
||||||
local cocoa_grow = mcl_cocoas.grow
|
local cocoa_grow = mcl_cocoas.grow
|
||||||
|
|
||||||
|
|
|
@ -114,7 +114,9 @@ local function composter_progress_chance(pos, node, chance)
|
||||||
-- the block will get updated by the node timer callback set in node reg def
|
-- the block will get updated by the node timer callback set in node reg def
|
||||||
if level == 7 then
|
if level == 7 then
|
||||||
local timer = get_node_timer(pos)
|
local timer = get_node_timer(pos)
|
||||||
timer:start(1)
|
if not timer:is_started() then
|
||||||
|
timer:start(1)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue