mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 20:53:40 -04:00
Merge branch 'master' of github.com:Hetal728/MCGalaxy
This commit is contained in:
commit
2fd6ea5123
@ -36,18 +36,17 @@ namespace MCGalaxy {
|
|||||||
truename = name;
|
truename = name;
|
||||||
skinName = name;
|
skinName = name;
|
||||||
|
|
||||||
|
int altsCount = 0;
|
||||||
lock (pendingLock) {
|
lock (pendingLock) {
|
||||||
int altsCount = 0;
|
|
||||||
DateTime now = DateTime.UtcNow;
|
DateTime now = DateTime.UtcNow;
|
||||||
foreach (PendingItem item in pendingNames) {
|
foreach (PendingItem item in pendingNames) {
|
||||||
if (item.Name == truename && (now - item.Connected).TotalSeconds <= 60)
|
if (item.Name == truename && (now - item.Connected).TotalSeconds <= 60)
|
||||||
altsCount++;
|
altsCount++;
|
||||||
}
|
}
|
||||||
pendingNames.Add(new PendingItem(name));
|
pendingNames.Add(new PendingItem(name));
|
||||||
|
}
|
||||||
if (altsCount > 0) {
|
if (altsCount > 0) {
|
||||||
Leave("Already logged in!", true); return;
|
Leave("Already logged in!", true); return;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
string verify = enc.GetString(packet, 66, 32).Trim();
|
string verify = enc.GetString(packet, 66, 32).Trim();
|
||||||
@ -352,7 +351,7 @@ namespace MCGalaxy {
|
|||||||
string version = appName.Substring(spaceIndex, appName.Length - spaceIndex);
|
string version = appName.Substring(spaceIndex, appName.Length - spaceIndex);
|
||||||
Version ver;
|
Version ver;
|
||||||
try {
|
try {
|
||||||
ver = Version.Parse(version);
|
ver = new Version(version);
|
||||||
} catch {
|
} catch {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user