mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
add conflict warnings
This commit is contained in:
parent
ac54772e46
commit
214dfa61d7
2 changed files with 37 additions and 14 deletions
|
@ -430,17 +430,6 @@ local function make_noise_params(setting)
|
|||
}
|
||||
end
|
||||
|
||||
local function has_keybinding_conflict(t1, t2)
|
||||
for _, v1 in pairs(t1) do
|
||||
for _, v2 in pairs(t2) do
|
||||
if core.are_keycodes_equal(v1, v2) then
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
function make.key(setting)
|
||||
local btn_bind = "bind_" .. setting.name
|
||||
local btn_edit = "edit_" .. setting.name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue