Streamline abms.
This commit is contained in:
parent
2f9d41c11e
commit
fb45d350b3
4 changed files with 97 additions and 115 deletions
15
init.lua
15
init.lua
|
@ -42,6 +42,11 @@ if fun_caves.pyramids_everywhere == nil then
|
|||
fun_caves.pyramids_everywhere = false
|
||||
end
|
||||
|
||||
fun_caves.quick_leaf_decay = minetest.setting_getbool('fun_caves_quick_leaf_decay')
|
||||
if fun_caves.quick_leaf_decay == nil then
|
||||
fun_caves.quick_leaf_decay = false
|
||||
end
|
||||
|
||||
fun_caves.DEBUG = false -- for maintenance only
|
||||
|
||||
|
||||
|
@ -454,3 +459,13 @@ if fun_caves.db.status then
|
|||
end
|
||||
end
|
||||
----------------------------------------------------------------------
|
||||
|
||||
|
||||
if fun_caves.quick_leaf_decay then
|
||||
for name, node in pairs(minetest.registered_nodes) do
|
||||
if node.groups.leafdecay then
|
||||
node.groups.leafdecay = 0
|
||||
node.groups.qfc_leafdecay = 0
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue