Improved selectionbox

This commit is contained in:
webdesigner97 2013-10-12 11:54:52 +02:00
parent 02592d54f7
commit 0df7fcd054

View File

@ -17,12 +17,6 @@ minetest.register_node(":streets:trafficlight_bottom",{
{-0.1,0.25,-0.1,0.1,0.5,0.1}
}
},
selection_box = {
type = "fixed",
fixed = {
{-0.25,-0.5,-0.25,0.25,2.5,0.25},
}
}
})
minetest.register_node(":streets:trafficlight_middle",{
@ -54,6 +48,13 @@ minetest.register_node(":streets:trafficlight_controller",{
{-0.05,0.5,-0.05,0.05,1.6,0.05}
}
},
selection_box = {
type = "fixed",
fixed = {
{-0.5,-0.5,-0.5,0.5,0.5,0.5},
{-0.5,1.5,-0.5,0.5,4.5,0.5}
}
},
on_receive_fields = function(pos, formname, fields, sender)
minetest.get_meta(pos):set_string("channel", fields.channel)
end,