修复一些错误
This commit is contained in:
parent
1f461168b1
commit
77bac4f784
|
@ -138,7 +138,7 @@ public class ConfigUtil {
|
||||||
ForgeModList.put("catanticheat", "1.2.6");
|
ForgeModList.put("catanticheat", "1.2.6");
|
||||||
}
|
}
|
||||||
|
|
||||||
RandomMAC = config.getBoolean("MACChecker.RandomMAC");
|
RandomMAC = config.getBoolean("AdvancedSettings.MACChecker.RandomMAC");
|
||||||
|
|
||||||
checkSRV();
|
checkSRV();
|
||||||
|
|
||||||
|
|
|
@ -377,7 +377,9 @@ public class BotAttack extends IAttack {
|
||||||
session.send(new ClientPluginMessagePacket("VexView", "Verification:1.8.10".getBytes()));
|
session.send(new ClientPluginMessagePacket("VexView", "Verification:1.8.10".getBytes()));
|
||||||
break;
|
break;
|
||||||
case "MAC|Check":
|
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;
|
byte[] MACAddress;
|
||||||
|
|
||||||
ByteArrayOutputStream buf = new ByteArrayOutputStream();
|
ByteArrayOutputStream buf = new ByteArrayOutputStream();
|
||||||
|
@ -405,6 +407,7 @@ public class BotAttack extends IAttack {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
LogUtil.doLog(0, "Channel: " + packet.getChannel() + " | Data: " + Arrays.toString(packet.getData()), "DEBUG");
|
||||||
}
|
}
|
||||||
} else if (recvPacket instanceof ServerJoinGamePacket) {
|
} else if (recvPacket instanceof ServerJoinGamePacket) {
|
||||||
session.setFlag("join", true);
|
session.setFlag("join", true);
|
||||||
|
|
Loading…
Reference in New Issue