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

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

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"
})