summaryrefslogtreecommitdiff
path: root/trafficlight/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'trafficlight/init.lua')
-rw-r--r--trafficlight/init.lua13
1 files changed, 7 insertions, 6 deletions
diff --git a/trafficlight/init.lua b/trafficlight/init.lua
index 768c26a..1d3049d 100644
--- a/trafficlight/init.lua
+++ b/trafficlight/init.lua
@@ -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,