Skip to content
This repository has been archived by the owner on Aug 21, 2022. It is now read-only.

Commit

Permalink
Sync level-seed
Browse files Browse the repository at this point in the history
  • Loading branch information
Soniczac7 committed Apr 19, 2022
1 parent 3e4b2cf commit 0a89202
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,22 @@ public MainForm()
Debug.WriteLine("Failed to find max-build-height");
console.AppendText("\n[Error] Failed to find max-build-height in server.properties");
}
// Process level-seed
string seedSetting = serverProperties[36];
if (seedSetting.Contains("level-seed"))
{
Debug.WriteLine("Found level-seed");
string seed;
seed = seedSetting.Remove(0, 11);
Debug.WriteLine("level-seed value is " + seed);
textBox2.Text = seed;
}
else
{
// level-seed line did not contain "level-seed"
Debug.WriteLine("Failed to find level-seed");
console.AppendText("\n[Error] Failed to find level-seed in server.properties");
}
}
catch (Exception ex)
{
Expand Down

0 comments on commit 0a89202

Please sign in to comment.