修复一些错误

This commit is contained in:
SerendipityR 2022-10-04 00:21:36 +08:00 committed by GitHub
parent 1f461168b1
commit 77bac4f784
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -138,7 +138,7 @@ public class ConfigUtil {
ForgeModList.put("catanticheat", "1.2.6");
}
RandomMAC = config.getBoolean("MACChecker.RandomMAC");
RandomMAC = config.getBoolean("AdvancedSettings.MACChecker.RandomMAC");
checkSRV();

View File

@ -377,7 +377,9 @@ public class BotAttack extends IAttack {
session.send(new ClientPluginMessagePacket("VexView", "Verification:1.8.10".getBytes()));
break;
case "MAC|Check":
if (ConfigUtil.RandomMAC && packet.getData()[0] == 1) {
LogUtil.doLog(0, "Channel: " + packet.getChannel() + " | Data: " + Arrays.toString(packet.getData()), "DEBUG");
if (ConfigUtil.RandomMAC) {
byte[] MACAddress;
ByteArrayOutputStream buf = new ByteArrayOutputStream();
@ -405,6 +407,7 @@ public class BotAttack extends IAttack {
}
break;
default:
LogUtil.doLog(0, "Channel: " + packet.getChannel() + " | Data: " + Arrays.toString(packet.getData()), "DEBUG");
}
} else if (recvPacket instanceof ServerJoinGamePacket) {
session.setFlag("join", true);