Merge pull request #1 from rubenwardy/fix_keyboard

Fix typo where keyboards didn't save their channel (PR by rubenwardy)
This commit is contained in:
jogag 2015-10-24 10:02:40 +02:00
commit 1d2c04601a

@ -44,7 +44,7 @@ minetest.register_node("digiboard:keyboard", {
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
local channel = meta:get_string("channel") local channel = meta:get_string("channel")
if fields.channel then if fields.channel then
meta:set_string("channel") meta:set_string("channel", fields.channel)
meta:set_string("formspec", "field[text;Enter text;]") meta:set_string("formspec", "field[text;Enter text;]")
elseif fields.text then elseif fields.text then
digiline:receptor_send(pos, digiline.rules.default, channel, fields.text) digiline:receptor_send(pos, digiline.rules.default, channel, fields.text)