From af90fd41ca6dd9267ce86009abf4f814ac5743eb Mon Sep 17 00:00:00 2001 From: Gravit Date: Sat, 9 Mar 2019 21:20:08 +0700 Subject: [PATCH] =?UTF-8?q?[FIX]=20compareMode=20=D0=BE=D0=B1=D0=B5=D1=80?= =?UTF-8?q?=D0=BD=D1=83=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../launchserver/auth/hwid/MysqlHWIDHandler.java | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/auth/hwid/MysqlHWIDHandler.java b/LaunchServer/src/main/java/ru/gravit/launchserver/auth/hwid/MysqlHWIDHandler.java index ce907c4e..704ff525 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/auth/hwid/MysqlHWIDHandler.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/auth/hwid/MysqlHWIDHandler.java @@ -144,12 +144,15 @@ public void onCheckInfo(OshiHWID hwid, String username, Connection c) throws HWI boolean isOne = false; while(set.next()) { if(!oneCompareMode) isOne = true; - OshiHWID db_hwid = new OshiHWID(); - db_hwid.serialNumber = set.getString(hwidFieldSerialNumber); - db_hwid.processorID = set.getString(hwidFieldProcessorID); - db_hwid.HWDiskSerial = set.getString(hwidFieldHWDiskSerial); - db_hwid.totalMemory = Long.valueOf(set.getString(hwidFieldTotalMemory)); - if(hwid.compare(db_hwid) < compare) continue; + if(compareMode) + { + OshiHWID db_hwid = new OshiHWID(); + db_hwid.serialNumber = set.getString(hwidFieldSerialNumber); + db_hwid.processorID = set.getString(hwidFieldProcessorID); + db_hwid.HWDiskSerial = set.getString(hwidFieldHWDiskSerial); + db_hwid.totalMemory = Long.valueOf(set.getString(hwidFieldTotalMemory)); + if(hwid.compare(db_hwid) < compare) continue; + } if(oneCompareMode) isOne = true; boolean isBanned = set.getBoolean(hwidFieldBanned); if (isBanned) {