diff options
author | SmallJoker <mk939@ymail.com> | 2019-11-03 15:55:46 +0100 |
---|---|---|
committer | SmallJoker <SmallJoker@users.noreply.github.com> | 2019-11-10 11:35:02 +0100 |
commit | 9b58f8db29c545d5fead166ae519045d20a1ca0b (patch) | |
tree | 8fc9a486c02b666a7c96f5d7a2dd435cad24c2cd /mesecons_fpga/init.lua | |
parent | 7784b13da5db3665a7839fe1cdcdfd9b30903c9a (diff) | |
download | mesecons-9b58f8db29c545d5fead166ae519045d20a1ca0b.tar mesecons-9b58f8db29c545d5fead166ae519045d20a1ca0b.tar.gz mesecons-9b58f8db29c545d5fead166ae519045d20a1ca0b.tar.bz2 mesecons-9b58f8db29c545d5fead166ae519045d20a1ca0b.tar.xz mesecons-9b58f8db29c545d5fead166ae519045d20a1ca0b.zip |
FPGA: Add 'unary' value to talbe. Document
Diffstat (limited to 'mesecons_fpga/init.lua')
-rw-r--r-- | mesecons_fpga/init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesecons_fpga/init.lua b/mesecons_fpga/init.lua index fe02835..6ba8f80 100644 --- a/mesecons_fpga/init.lua +++ b/mesecons_fpga/init.lua @@ -192,7 +192,7 @@ plg.to_formspec_string = function(is, err) local function dropdown_action(x, y, name, val) local selected = 0 local titles = { " " } - for i, data in ipairs(lcore.get_operands()) do + for i, data in ipairs(lcore.get_operations()) do titles[i + 1] = data.fs_name if val == data.gate then selected = i + 1 @@ -249,7 +249,7 @@ plg.from_formspec_fields = function(fields) end end local function read_action(s) - for i, data in ipairs(lcore.get_operands()) do + for i, data in ipairs(lcore.get_operations()) do if data.fs_name == s then return data.gate end |