Remove legacy nodeupdate 4 core.check_for_falling
This commit is contained in:
parent
0bc7f6e912
commit
1e540a0746
6 changed files with 10 additions and 10 deletions
|
@ -34,7 +34,7 @@ tnt = {}
|
|||
tnt.ignite = function(pos)
|
||||
minetest.remove_node(pos)
|
||||
spawn_tnt(pos, "mcl_tnt:tnt")
|
||||
nodeupdate(pos)
|
||||
core.check_for_falling(pos)
|
||||
end
|
||||
|
||||
|
||||
|
@ -111,7 +111,7 @@ function TNT:on_step(dtime)
|
|||
if n.name ~= "air" and n.name ~= "default:obsidian" and n.name ~= "default:bedrock" and n.name ~= "protector:protect" then
|
||||
activate_if_tnt(n.name, np, pos, 3)
|
||||
minetest.remove_node(np)
|
||||
nodeupdate(np)
|
||||
core.check_for_falling(np)
|
||||
if n.name ~= "mcl_tnt:tnt" and math.random() > 0.9 then
|
||||
local drop = minetest.get_node_drops(n.name, "")
|
||||
for _,item in ipairs(drop) do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue