input: prevent duplicate input configs
(cherry picked from commit 5fbf174c3644a64ee217c732190b16ab9b65120a)
This commit is contained in:
parent
b2c4d38e09
commit
33cc85d5ef
@ -91,6 +91,7 @@ pub fn input(
|
||||
for (server.input_manager.configs.items) |*input_config| {
|
||||
if (mem.eql(u8, input_config.glob, args[1])) {
|
||||
try input_config.parse(args[2], args[3]);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
var input_config: InputConfig = .{
|
||||
|
Loading…
x
Reference in New Issue
Block a user