1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 00:20:17 +01:00

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

View File

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

View File

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