From c4b8a75ff06257b70504e5e0beab9c3f92852d55 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 8 Mar 2015 10:30:44 +0100 Subject: [PATCH] Use cid_data cache instead of direct lookup in TNT mod --- mods/tnt/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/tnt/init.lua b/mods/tnt/init.lua index c7785002..f042a892 100644 --- a/mods/tnt/init.lua +++ b/mods/tnt/init.lua @@ -82,7 +82,7 @@ local function destroy(drops, pos, cid) if def and def.flammable then minetest.set_node(pos, fire_node) else - local nodename = minetest.get_node(pos).name + local nodename = cid_data[cid].name local on_blast = minetest.registered_nodes[nodename].on_blast if on_blast ~= nil then on_blast(pos, 1)