Really fix .NET 2.0 framework build

This commit is contained in:
UnknownShadow200 2024-04-27 13:04:51 +10:00
parent 2c05bb0e33
commit 17e62f00d7

View File

@ -117,13 +117,15 @@ namespace MCGalaxy {
string myPath = PlayerPath(playerName);
try {
string[] lines;
string data;
lock (locker) {
if (!File.Exists(myPath)) { return Default; }
lines = File.ReadAllLines(myPath);
}
if (lines.Length == 0 || string.IsNullOrWhiteSpace(lines[0])) { return Default; }
Pronouns p = FindExact(lines[0]);
data = File.ReadAllText(myPath);
}
data = data.Trim();
if (data.Length == 0) return Default;
Pronouns p = FindExact(data);
if (p != null) return p;
return Default;