Overview
Comment: | remove unnecessary neighbor restriction |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
ced73b0ebe3e266dc7264847041871f6 |
User & Date: | lexi on 2021-07-10 00:43:34 |
Other Links: | manifest | tags |
Context
2021-07-10
| ||
21:15 | add defensive check against recipes that change types check-in: 5386806605 user: lexi tags: trunk | |
00:43 | remove unnecessary neighbor restriction check-in: ced73b0ebe user: lexi tags: trunk | |
2021-07-08
| ||
23:14 | add lathe recipes, bugfixes check-in: 669078947d user: lexi tags: trunk | |
Changes
Modified tap.lua from [451ab2dcbd] to [212d278bbc].
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
}
local abm_cache
local abm_cache_time
minetest.register_abm {
label = 'Sap drip';
nodenames = {'sorcery:tap'};
neighbors = {'group:tree'};
interval = sap_interval;
chance = 5;
catch_up = true;
action = function(pos, node)
local now = os.time()
if abm_cache_time == nil or now > abm_cache_time + (sap_interval-1) then
abm_cache = { treehash = {} }
|
< |
72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
} local abm_cache local abm_cache_time minetest.register_abm { label = 'Sap drip'; nodenames = {'sorcery:tap'}; interval = sap_interval; chance = 5; catch_up = true; action = function(pos, node) local now = os.time() if abm_cache_time == nil or now > abm_cache_time + (sap_interval-1) then abm_cache = { treehash = {} } |