forked from nalc/homedecor_modpack
fix bad facedir setting on punch to turn on/off
This commit is contained in:
parent
9869520097
commit
4279d90049
|
@ -125,7 +125,7 @@ minetest.register_node("plasmascreen:tv", {
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
on_punch = function(pos, node, puncher, pointed_thing)
|
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
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -152,7 +152,7 @@ minetest.register_node("plasmascreen:tv_off", {
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
on_punch = function(pos, node, puncher, pointed_thing)
|
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,
|
end,
|
||||||
drop = "plasmascreen:tv"
|
drop = "plasmascreen:tv"
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user