Fix a bug in keyboard
Fixed a bug that sends nil (=does not send) instead of the text (mistype: "text" instead of "fields.text")
This commit is contained in:
parent
1ec86753d0
commit
9b72918bed
@ -47,7 +47,7 @@ minetest.register_node("digiboard:keyboard", {
|
||||
meta:set_string("channel")
|
||||
meta:set_string("formspec", "field[text;Enter text;]")
|
||||
elseif fields.text then
|
||||
digiline:receptor_send(pos, digiline.rules.default, channel, text)
|
||||
digiline:receptor_send(pos, digiline.rules.default, channel, fields.text)
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user