Remove legacy nodeupdate 4 core.check_for_falling

This commit is contained in:
Wuzzy 2017-01-26 19:14:07 +01:00
parent 0bc7f6e912
commit 1e540a0746
6 changed files with 10 additions and 10 deletions

View file

@ -856,7 +856,7 @@ minetest.register_abm({
end end
-- Remove node -- Remove node
minetest.remove_node(p0) minetest.remove_node(p0)
nodeupdate(p0) core.check_for_falling(p0)
end end
end end
}) })

View file

@ -1112,7 +1112,7 @@ minetest.register_node("default:vine", {
local node = minetest.get_node(pos2) local node = minetest.get_node(pos2)
if node.name == "default:vine" and check_attached_node(pos2, node) == false then if node.name == "default:vine" and check_attached_node(pos2, node) == false then
drop_attached_node(pos2) drop_attached_node(pos2)
nodeupdate(pos2) core.check_for_falling(pos2)
ptr = ptr + 1 ptr = ptr + 1
else else
next_find = false next_find = false

View file

@ -181,7 +181,7 @@ minetest.register_abm({
return return
end end
minetest.remove_node(p) minetest.remove_node(p)
nodeupdate(p) core.check_for_falling(p)
end end
else else
-- remove flame -- remove flame

View file

@ -34,7 +34,7 @@ tnt = {}
tnt.ignite = function(pos) tnt.ignite = function(pos)
minetest.remove_node(pos) minetest.remove_node(pos)
spawn_tnt(pos, "mcl_tnt:tnt") spawn_tnt(pos, "mcl_tnt:tnt")
nodeupdate(pos) core.check_for_falling(pos)
end 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 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) activate_if_tnt(n.name, np, pos, 3)
minetest.remove_node(np) minetest.remove_node(np)
nodeupdate(np) core.check_for_falling(np)
if n.name ~= "mcl_tnt:tnt" and math.random() > 0.9 then if n.name ~= "mcl_tnt:tnt" and math.random() > 0.9 then
local drop = minetest.get_node_drops(n.name, "") local drop = minetest.get_node_drops(n.name, "")
for _,item in ipairs(drop) do for _,item in ipairs(drop) do

View file

@ -20,7 +20,7 @@ end
function mesecon:mvps_process_stack(stack) function mesecon:mvps_process_stack(stack)
-- update mesecons for placed nodes ( has to be done after all nodes have been added ) -- update mesecons for placed nodes ( has to be done after all nodes have been added )
for _, n in ipairs(stack) do for _, n in ipairs(stack) do
nodeupdate(n.pos) core.check_for_falling(n.pos)
mesecon.on_placenode(n.pos, minetest.get_node(n.pos)) mesecon.on_placenode(n.pos, minetest.get_node(n.pos))
mesecon:update_autoconnect(n.pos) mesecon:update_autoconnect(n.pos)
end end
@ -92,8 +92,8 @@ function mesecon:mvps_pull_single(pos, dir) -- pos: pos of mvps; direction: dire
minetest.add_node(pos, nn) minetest.add_node(pos, nn)
minetest.get_meta(pos):from_table(meta) minetest.get_meta(pos):from_table(meta)
nodeupdate(np) core.check_for_falling(np)
nodeupdate(pos) core.check_for_falling(pos)
mesecon.on_dignode(np, nn) mesecon.on_dignode(np, nn)
mesecon:update_autoconnect(np) mesecon:update_autoconnect(np)
end end
@ -113,7 +113,7 @@ function mesecon:mvps_pull_all(pos, direction) -- pos: pos of mvps; direction: d
repeat repeat
lnode2 = minetest.get_node(lpos2) lnode2 = minetest.get_node(lpos2)
minetest.add_node(oldpos, {name=lnode2.name}) minetest.add_node(oldpos, {name=lnode2.name})
nodeupdate(oldpos) core.check_for_falling(oldpos)
oldpos = {x=lpos2.x, y=lpos2.y, z=lpos2.z} oldpos = {x=lpos2.x, y=lpos2.y, z=lpos2.z}
lpos2.x = lpos2.x-direction.x lpos2.x = lpos2.x-direction.x
lpos2.y = lpos2.y-direction.y lpos2.y = lpos2.y-direction.y

View file

@ -63,7 +63,7 @@ local piston_remove_pusher = function (pos, node)
if pushername == pistonspec.pusher then --make sure there actually is a pusher (for compatibility reasons mainly) if pushername == pistonspec.pusher then --make sure there actually is a pusher (for compatibility reasons mainly)
minetest.remove_node(pusherpos) minetest.remove_node(pusherpos)
nodeupdate(pusherpos) core.check_for_falling(pusherpos)
end end
end end