Default: Optimise and simplify leafdecay ABM, remove cache
authorparamat <mat.gregory@virginmedia.com>
Sun, 7 Aug 2016 02:54:08 +0000 (03:54 +0100)
committerparamat <mat.gregory@virginmedia.com>
Mon, 15 Aug 2016 19:42:50 +0000 (20:42 +0100)
commit2ecbc43a7a299894d1ce0f7b27b262a0b6fba71c
tree8d51afbe40e5a1a85bb3e343a1e033fba39a204f
parent619ac5269393534c3f8ad8229514b17aa47eb513
Default: Optimise and simplify leafdecay ABM, remove cache

With thanks to contributor tenplus1
Remove leaf cache and globalstep accumulator limiter
Use 'pos' instead of 'p0'
Remove non-essential 'group:liquid' from 'neighbors'
Increase chance value to 10 to compensate for disabled cache
Disable 'catch-up' to avoid the ABM often becoming 10 times more
intensive
Remove use of 'do preserve' bool, instead simply 'return'
Remove unnecessary checks for 'd' and 'd == 0'
Don't 'get' n0, use already present 'node' instead
Swap order two conditionals so that the one most likely is first
mods/default/functions.lua