diff --git a/lua/DCS-gRPC/grpc-mission.lua b/lua/DCS-gRPC/grpc-mission.lua index d683e3e2..da41487e 100644 --- a/lua/DCS-gRPC/grpc-mission.lua +++ b/lua/DCS-gRPC/grpc-mission.lua @@ -27,7 +27,7 @@ end if not GRPC.dllPath then GRPC.dllPath = lfs.writedir() .. [[Mods\tech\DCS-gRPC\]] end -if GRPC.throughputLimit == nil or GRPC.throughputLimit == 0 or not type(GRPC.throughputLimit) == "number" then +if GRPC.throughputLimit == nil or GRPC.throughputLimit == 0 or type(GRPC.throughputLimit) ~= "number" then GRPC.throughputLimit = 600 end diff --git a/lua/Hooks/DCS-gRPC.lua b/lua/Hooks/DCS-gRPC.lua index 87ab7b54..596ed6d2 100644 --- a/lua/Hooks/DCS-gRPC.lua +++ b/lua/Hooks/DCS-gRPC.lua @@ -33,7 +33,7 @@ local function init() if not GRPC.dllPath then GRPC.dllPath = lfs.writedir() .. [[Mods\tech\DCS-gRPC\]] end - if GRPC.throughputLimit == nil or GRPC.throughputLimit == 0 or not type(GRPC.throughputLimit) == "number" then + if GRPC.throughputLimit == nil or GRPC.throughputLimit == 0 or type(GRPC.throughputLimit) ~= "number" then GRPC.throughputLimit = 600 end