From 0df7fcd05444feb8545c9acccf3c8e7ca018f137 Mon Sep 17 00:00:00 2001 From: webdesigner97 Date: Sat, 12 Oct 2013 11:54:52 +0200 Subject: Improved selectionbox --- trafficlight/init.lua | 13 +++++++------ 1 file 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, -- cgit v1.2.3