Simplify door group check code

This commit is contained in:
Aaron Suen 2022-10-21 21:39:32 -04:00
parent ff091fd3bc
commit ba284b52f8

View File

@ -10,8 +10,7 @@ local dntname = modname .. ":ablation"
local hash = minetest.hash_node_position
local cooldowns = {}
local quick_doors = {}
nodecore.group_expand("group:door", function(k) quick_doors[k] = true end)
local quick_doors = nodecore.group_expand("group:door", true)
local function ablation(pos, node)
local key = hash(pos)