From 179d82444ca2942c2856f709509c50f4ce15252a Mon Sep 17 00:00:00 2001 From: greeter34 <100347697+greeter34@users.noreply.github.com> Date: Wed, 27 Jul 2022 15:50:02 -0300 Subject: [PATCH] Fix undoumented and removed nodeupdate (#13) --- computers.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/computers.lua b/computers.lua index 7a736bd..72a6850 100644 --- a/computers.lua +++ b/computers.lua @@ -162,7 +162,7 @@ computer.register("computer:admiral128", { on_rightclick = function ( pos, node, clicker, itemstack) node.name = "computer:monitor"; minetest.set_node(pos, node); - nodeupdate(pos) + minetest.check_for_falling(pos) end }) @@ -353,7 +353,7 @@ computer.register("computer:admiral128", { on_rightclick = function ( pos, node, clicker, itemstack) node.name = "computer:monitor_on"; minetest.set_node(pos, node); - nodeupdate(pos) + minetest.check_for_falling(pos) end }) @@ -423,7 +423,7 @@ computer.register("computer:admiral128", { on_rightclick = function ( pos, node, clicker, itemstack) node.name = "computer:tower"; minetest.set_node(pos, node); - nodeupdate(pos) + minetest.check_for_falling(pos) end }) @@ -455,7 +455,7 @@ computer.register("computer:admiral128", { on_rightclick = function ( pos, node, clicker, itemstack) node.name = "computer:tower_on"; minetest.set_node(pos, node); - nodeupdate(pos) + minetest.check_for_falling(pos) end }) @@ -533,7 +533,7 @@ minetest.register_node("computer:server", { on_rightclick = function ( pos, node, clicker, itemstack) node.name = "computer:server_on"; minetest.set_node(pos, node); - nodeupdate(pos) + minetest.check_for_falling(pos) end, on_place = function(itemstack, placer, pointed_thing) local pos = pointed_thing.above @@ -580,7 +580,7 @@ minetest.register_node("computer:server_on", { on_rightclick = function ( pos, node, clicker, itemstack) node.name = "computer:server"; minetest.set_node(pos, node); - nodeupdate(pos) + minetest.check_for_falling(pos) end , })