mirror of
https://github.com/jogag/digiline-stuff.git
synced 2025-02-17 11:43:42 +01:00
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:
@ -47,7 +47,7 @@ minetest.register_node("digiboard:keyboard", {
|
|||||||
meta:set_string("channel")
|
meta:set_string("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, text)
|
digiline:receptor_send(pos, digiline.rules.default, channel, fields.text)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user