mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 20:16:36 -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);
|
string myPath = PlayerPath(playerName);
|
||||||
try {
|
try {
|
||||||
|
|
||||||
string[] lines;
|
string data;
|
||||||
lock (locker) {
|
lock (locker) {
|
||||||
if (!File.Exists(myPath)) { return Default; }
|
if (!File.Exists(myPath)) { return Default; }
|
||||||
lines = File.ReadAllLines(myPath);
|
data = File.ReadAllText(myPath);
|
||||||
}
|
}
|
||||||
if (lines.Length == 0 || string.IsNullOrWhiteSpace(lines[0])) { return Default; }
|
data = data.Trim();
|
||||||
Pronouns p = FindExact(lines[0]);
|
|
||||||
|
if (data.Length == 0) return Default;
|
||||||
|
Pronouns p = FindExact(data);
|
||||||
if (p != null) return p;
|
if (p != null) return p;
|
||||||
return Default;
|
return Default;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user