mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 11:39:11 +03:00
[FIX] MemoryHWIDProvider
This commit is contained in:
parent
18b23b195a
commit
94e60c3e51
1 changed files with 2 additions and 2 deletions
|
@ -84,11 +84,11 @@ public boolean addPublicKeyToHardwareInfo(HardwareReportRequest.HardwareInfo har
|
||||||
for (MemoryHWIDEntity e : db) {
|
for (MemoryHWIDEntity e : db) {
|
||||||
HardwareInfoCompareResult result = compareHardwareInfo(e.hardware, hardwareInfo);
|
HardwareInfoCompareResult result = compareHardwareInfo(e.hardware, hardwareInfo);
|
||||||
if (warningSpoofingLevel > 0 && result.firstSpoofingLevel > warningSpoofingLevel && !isAlreadyWarning) {
|
if (warningSpoofingLevel > 0 && result.firstSpoofingLevel > warningSpoofingLevel && !isAlreadyWarning) {
|
||||||
LogHelper.warning("HardwareInfo spoofing level too high: %d", result.firstSpoofingLevel);
|
LogHelper.warning("HardwareInfo spoofing level too high: %f", result.firstSpoofingLevel);
|
||||||
isAlreadyWarning = true;
|
isAlreadyWarning = true;
|
||||||
}
|
}
|
||||||
if (result.compareLevel > criticalCompareLevel) {
|
if (result.compareLevel > criticalCompareLevel) {
|
||||||
LogHelper.debug("HardwareInfo publicKey change: compareLevel %d", result.compareLevel);
|
LogHelper.debug("HardwareInfo publicKey change: compareLevel %f", result.compareLevel);
|
||||||
if (e.banned) throw new HWIDException("You HWID banned");
|
if (e.banned) throw new HWIDException("You HWID banned");
|
||||||
e.publicKey = publicKey;
|
e.publicKey = publicKey;
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue