mirror of
https://github.com/mt-mods/plantlife_modpack.git
synced 2025-07-01 07:30:33 +02:00
use swap_node() where possible, for speed
This commit is contained in:
@ -67,7 +67,7 @@ function nature:grow_node(pos, nodename)
|
||||
>= nature.minimum_growth_light
|
||||
|
||||
if is_not_young(pos) and light_enough then
|
||||
minetest.set_node(pos, { name = nodename })
|
||||
minetest.swap_node(pos, { name = nodename })
|
||||
set_young_node(pos)
|
||||
|
||||
minetest.log("info", nodename .. " has grown at " .. pos.x .. ","
|
||||
|
Reference in New Issue
Block a user