diff --git a/gaseous-tools/Database.cs b/gaseous-tools/Database.cs index 81ffa47..9f87e3c 100644 --- a/gaseous-tools/Database.cs +++ b/gaseous-tools/Database.cs @@ -81,7 +81,8 @@ namespace gaseous_tools string resourceName = "gaseous_tools.Database.MySQL.gaseous-" + i + ".sql"; string dbScript = ""; - try + string[] resources = Assembly.GetExecutingAssembly().GetManifestResourceNames(); + if (resources.Contains(resourceName)) { using (Stream stream = assembly.GetManifestResourceStream(resourceName)) using (StreamReader reader = new StreamReader(stream)) @@ -115,9 +116,6 @@ namespace gaseous_tools } } } - } catch - { - break; } } break;