mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-28 17:46:28 -04:00
Clean up cid_data stuff in TNT mod
This commit is contained in:
parent
c4b8a75ff0
commit
dfdb8b79c6
1 changed files with 3 additions and 2 deletions
|
@ -23,6 +23,7 @@ minetest.after(0, function()
|
|||
name = name,
|
||||
drops = def.drops,
|
||||
flammable = def.groups.flammable,
|
||||
on_blast = def.on_blast,
|
||||
}
|
||||
end
|
||||
end)
|
||||
|
@ -82,8 +83,8 @@ local function destroy(drops, pos, cid)
|
|||
if def and def.flammable then
|
||||
minetest.set_node(pos, fire_node)
|
||||
else
|
||||
local nodename = cid_data[cid].name
|
||||
local on_blast = minetest.registered_nodes[nodename].on_blast
|
||||
local nodename = def.name
|
||||
local on_blast = def.on_blast
|
||||
if on_blast ~= nil then
|
||||
on_blast(pos, 1)
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue