diff --git a/TShockAPI/Utils.cs b/TShockAPI/Utils.cs
index a019b8bc..873254ce 100644
--- a/TShockAPI/Utils.cs
+++ b/TShockAPI/Utils.cs
@@ -1166,237 +1166,240 @@ namespace TShockAPI
return points;
}
- // ///
- // /// Dumps information and optionally exits afterwards
- // ///
- // ///
- // public void Dump(bool exit = true)
- // {
- // PrepareLangForDump();
- // Lang.setLang(true);
- // ConfigFile.DumpDescriptions();
- // Permissions.DumpDescriptions();
- // ServerSideCharacters.ServerSideConfig.DumpDescriptions();
- // RestManager.DumpDescriptions();
- // DumpBuffs("BuffList.txt");
- // DumpItems("Items-1_0.txt", -48, 235);
- // DumpItems("Items-1_1.txt", 235, 604);
- // DumpItems("Items-1_2.txt", 604, 2749);
- // DumpItems("Items-1_3.txt", 2749, Main.maxItemTypes);
- // DumpNPCs("NPCs.txt");
- // DumpProjectiles("Projectiles.txt");
- // DumpPrefixes("Prefixes.txt");
- // if (exit)
- // {
- // Environment.Exit(1);
- // }
- // }
+ ///
+ /// Dumps information and optionally exits afterwards
+ ///
+ ///
+ public void Dump(bool exit = true)
+ {
+ PrepareLangForDump();
+ // Lang.setLang(true);
+ ConfigFile.DumpDescriptions();
+ Permissions.DumpDescriptions();
+ ServerSideCharacters.ServerSideConfig.DumpDescriptions();
+ RestManager.DumpDescriptions();
+ DumpBuffs("BuffList.txt");
+ DumpItems("Items-1_0.txt", -48, 235);
+ DumpItems("Items-1_1.txt", 235, 604);
+ DumpItems("Items-1_2.txt", 604, 2749);
+ DumpItems("Items-1_3.txt", 2749, Main.maxItemTypes);
+ DumpNPCs("NPCs.txt");
+ DumpProjectiles("Projectiles.txt");
+ DumpPrefixes("Prefixes.txt");
+ if (exit)
+ {
+ Environment.Exit(1);
+ }
+ }
- // internal void PrepareLangForDump()
- // {
- // for(int i = 0; i < Main.recipe.Length; i++)
- // Main.recipe[i] = new Recipe();
- // }
+ internal void PrepareLangForDump()
+ {
+ for(int i = 0; i < Main.recipe.Length; i++)
+ Main.recipe[i] = new Recipe();
+ }
- // public void DumpBuffs(string path)
- // {
- // StringBuilder buffer = new StringBuilder();
- // buffer.AppendLine("[block:parameters]").AppendLine("{").AppendLine(" \"data\": {");
- // buffer.AppendLine(" \"h-0\": \"ID\",");
- // buffer.AppendLine(" \"h-1\": \"Name\",");
- // buffer.AppendLine(" \"h-2\": \"Description\",");
+ public void DumpBuffs(string path)
+ {
+ StringBuilder buffer = new StringBuilder();
+ buffer.AppendLine("[block:parameters]").AppendLine("{").AppendLine(" \"data\": {");
+ buffer.AppendLine(" \"h-0\": \"ID\",");
+ buffer.AppendLine(" \"h-1\": \"Name\",");
+ buffer.AppendLine(" \"h-2\": \"Description\",");
- // List