Skip to content

Commit 09a229b

Browse files
committedNov 22, 2016
Update 'nodeupdate()' to 'check_for_falling()' API
1 parent 208c9f4 commit 09a229b

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed
 

‎.luacheckrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ read_globals = {
55
"DIR_DELIM",
66
"minetest", "core",
77
"dump",
8-
"vector", "nodeupdate", "nodeupdate_single",
8+
"vector",
99
"VoxelManip", "VoxelArea",
1010
"PseudoRandom", "ItemStack",
1111
}

‎mods/beds/api.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ local function destruct_bed(pos, n)
1616
if reverse then
1717
reverse = not reverse
1818
minetest.remove_node(other)
19-
nodeupdate(other)
19+
minetest.check_for_falling(other)
2020
else
2121
reverse = not reverse
2222
end

‎mods/default/functions.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ minetest.register_abm({
356356
end
357357
-- Remove node
358358
minetest.remove_node(pos)
359-
nodeupdate(pos)
359+
minetest.check_for_falling(pos)
360360
end
361361
})
362362

‎mods/doors/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ function doors.register(name, def)
364364
end
365365
def.after_dig_node = function(pos, node, meta, digger)
366366
minetest.remove_node({x = pos.x, y = pos.y + 1, z = pos.z})
367-
nodeupdate({x = pos.x, y = pos.y + 1, z = pos.z})
367+
minetest.check_for_falling({x = pos.x, y = pos.y + 1, z = pos.z})
368368
end
369369
def.on_rotate = false
370370

‎mods/fire/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ else -- Fire enabled
290290
def.on_burn(p)
291291
else
292292
minetest.remove_node(p)
293-
nodeupdate(p)
293+
minetest.check_for_falling(p)
294294
end
295295
end
296296
end,

‎mods/tnt/init.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -332,15 +332,15 @@ local function tnt_explode(pos, radius, ignore_protection, ignore_on_blast)
332332
vm:update_map()
333333
vm:update_liquids()
334334

335-
-- call nodeupdate for everything within 1.5x blast radius
335+
-- call check_single_for_falling for everything within 1.5x blast radius
336336
for y = -radius * 1.5, radius * 1.5 do
337337
for z = -radius * 1.5, radius * 1.5 do
338338
for x = -radius * 1.5, radius * 1.5 do
339339
local rad = {x = x, y = y, z = z}
340340
local s = vector.add(pos, rad)
341341
local r = vector.length(rad)
342342
if r / radius < 1.4 then
343-
nodeupdate_single(s)
343+
minetest.check_single_for_falling(s)
344344
end
345345
end
346346
end
@@ -598,7 +598,7 @@ function tnt.register_tnt(def)
598598
on_construct = function(pos)
599599
minetest.sound_play("tnt_ignite", {pos = pos})
600600
minetest.get_node_timer(pos):start(4)
601-
nodeupdate(pos)
601+
minetest.check_for_falling(pos)
602602
end,
603603
})
604604
end

0 commit comments

Comments
 (0)
Please sign in to comment.