mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 03:55:18 -04:00
Really fix .NET 2.0 framework build
This commit is contained in:
parent
2c05bb0e33
commit
17e62f00d7
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user