Change "l" and "r" to upper case, to avoid confusion, and fix README.

master
Pedro Gimeno 2017-12-21 14:24:30 +01:00
parent 7cbfb185d9
commit f5955ac175
2 changed files with 3 additions and 3 deletions

View File

@ -19,4 +19,4 @@ The digiline signal must be a string with one of these formats:
Despite accepting any hex colours, due to Minetest limitations only 125 are possible, which are all possible combinations of values 00, 40, 80, C0 and FF in each of R, G and B (values 00-33 count as 00, values 34-66 count as 40, values 67-99 count as 80, values 9A-CC count as C0, and values CD-FF count as FF)
After being configured, it will send on the selected channel the string "l <playername>" when the node is punched (l for left-clicked) and the string "r <playername>" when the node is right-clicked (with the actual player's name, of course).
After being configured, it will send on the selected channel the string "L &lt;playername>" when the node is punched (L for left-clicked) and the string "R &lt;playername>" when the node is right-clicked (with the actual player's name, of course).

View File

@ -19,7 +19,7 @@ local function multicolour_light_on_punch(pos, node, puncher, pointed_thing)
if channel == "" then
return
end
digiline:receptor_send(pos, digiline.rules.default, channel, "l " .. puncher:get_player_name())
digiline:receptor_send(pos, digiline.rules.default, channel, "L " .. puncher:get_player_name())
end
local function multicolour_light_on_rightclick(pos, node, clicker, itemstack,
@ -28,7 +28,7 @@ local function multicolour_light_on_rightclick(pos, node, clicker, itemstack,
if channel == "" then
return
end
digiline:receptor_send(pos, digiline.rules.default, channel, "r " .. clicker:get_player_name())
digiline:receptor_send(pos, digiline.rules.default, channel, "R " .. clicker:get_player_name())
end
local function multicolour_light_on_construct(pos)