mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-28 17:46:28 -04:00
Use cid_data cache instead of direct lookup in TNT mod
This commit is contained in:
parent
65bf238f1e
commit
c4b8a75ff0
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue