summaryrefslogtreecommitdiff
path: root/trafficlight
diff options
context:
space:
mode:
authorwebdesigner97 <Christian_D_97@gmx.de>2013-10-12 11:54:52 +0200
committerwebdesigner97 <Christian_D_97@gmx.de>2013-10-12 11:54:52 +0200
commit0df7fcd05444feb8545c9acccf3c8e7ca018f137 (patch)
treee8b7d987444aa90341582d20335b19810056b74f /trafficlight
parent02592d54f7fd17b4cc38a0cb94839dad8c55fc93 (diff)
downloadroads-0df7fcd05444feb8545c9acccf3c8e7ca018f137.tar
roads-0df7fcd05444feb8545c9acccf3c8e7ca018f137.tar.gz
roads-0df7fcd05444feb8545c9acccf3c8e7ca018f137.tar.bz2
roads-0df7fcd05444feb8545c9acccf3c8e7ca018f137.tar.xz
roads-0df7fcd05444feb8545c9acccf3c8e7ca018f137.zip
Improved selectionbox
Diffstat (limited to 'trafficlight')
-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,