remove unnecessary nodeupdate() usage

this undocumented function is internally being used for falling or attached nodes and shouldn't be needed here
This commit is contained in:
Tim 2015-01-24 19:47:04 +01:00
parent fc436a1a1c
commit 307d969f4c
3 changed files with 0 additions and 10 deletions

View File

@ -152,7 +152,6 @@ minetest.register_node("computer:monitor_on", {
on_rightclick = function ( pos, node, clicker, itemstack)
node.name = "computer:monitor";
minetest.set_node(pos, node);
nodeupdate(pos)
end
})
@ -286,7 +285,6 @@ minetest.register_node("computer:monitor", {
on_rightclick = function ( pos, node, clicker, itemstack)
node.name = "computer:monitor_on";
minetest.set_node(pos, node);
nodeupdate(pos)
end
})
@ -343,7 +341,6 @@ minetest.register_node("computer:tower_on", {
on_rightclick = function ( pos, node, clicker, itemstack)
node.name = "computer:tower";
minetest.set_node(pos, node);
nodeupdate(pos)
end
})
@ -375,7 +372,6 @@ minetest.register_node("computer:tower", {
on_rightclick = function ( pos, node, clicker, itemstack)
node.name = "computer:tower_on";
minetest.set_node(pos, node);
nodeupdate(pos)
end
})
@ -436,7 +432,6 @@ minetest.register_node("computer:server", {
on_rightclick = function ( pos, node, clicker, itemstack)
node.name = "computer:server_on";
minetest.set_node(pos, node);
nodeupdate(pos)
end,
on_place = function(itemstack, placer, pointed_thing)
local pos = pointed_thing.above
@ -478,6 +473,5 @@ minetest.register_node("computer:server_on", {
on_rightclick = function ( pos, node, clicker, itemstack)
node.name = "computer:server";
minetest.set_node(pos, node);
nodeupdate(pos)
end
})

View File

@ -31,7 +31,6 @@ computer.register = function ( name, def )
end
node.name = OFFSTATE;
minetest.set_node(pos, node);
nodeupdate(pos);
end;
});
minetest.register_node(OFFSTATE, {
@ -56,7 +55,6 @@ computer.register = function ( name, def )
end
node.name = ONSTATE;
minetest.set_node(pos, node);
nodeupdate(pos);
end;
drop = ONSTATE;
});

View File

@ -349,7 +349,6 @@ local function reg_lamp(suffix, nxt, tilesuffix, light, color)
on_punch = function(pos, node, puncher)
node.name = "homedecor:table_lamp"..lampcolor.."_"..repl[suffix]
minetest.set_node(pos, node)
nodeupdate(pos)
end,
})
@ -370,7 +369,6 @@ local function reg_lamp(suffix, nxt, tilesuffix, light, color)
on_punch = function(pos, node, puncher)
node.name = "homedecor:standing_lamp"..lampcolor.."_"..repl[suffix]
minetest.set_node(pos, node)
nodeupdate(pos)
end,
expand = { top="air" },
})