fix bad facedir setting on punch to turn on/off

This commit is contained in:
Vanessa Ezekowitz 2015-04-16 03:55:27 -04:00
parent 9869520097
commit 4279d90049
1 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ minetest.register_node("plasmascreen:tv", {
end
end,
on_punch = function(pos, node, puncher, pointed_thing)
minetest.set_node(pos, {name = "plasmascreen:tv_off", param2 = node.fdir})
minetest.set_node(pos, {name = "plasmascreen:tv_off", param2 = node.param2})
end
})
@ -152,7 +152,7 @@ minetest.register_node("plasmascreen:tv_off", {
end
end,
on_punch = function(pos, node, puncher, pointed_thing)
minetest.set_node(pos, {name = "plasmascreen:tv", param2 = node.fdir})
minetest.set_node(pos, {name = "plasmascreen:tv", param2 = node.param2})
end,
drop = "plasmascreen:tv"
})