Streamline abms.

This commit is contained in:
Duane 2016-08-04 21:40:50 -05:00
parent 2f9d41c11e
commit fb45d350b3
4 changed files with 97 additions and 115 deletions

View file

@ -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