[BUGFIX] Fixed setting mac address

This commit is contained in:
Sandro Coutinho
2020-02-11 15:33:42 +00:00
committed by Dark98
parent 87a2773069
commit 79668038be
+1 -3
View File
@@ -11,8 +11,6 @@ import org.parabot.core.network.proxy.ProxyType;
import org.parabot.core.ui.BotUI;
import org.parabot.core.ui.ServerSelector;
import org.parabot.core.ui.utils.UILog;
import org.parabot.environment.handlers.exceptions.ExceptionHandler;
import org.parabot.environment.handlers.exceptions.FileExceptionHandler;
import javax.swing.*;
import java.io.File;
@@ -121,7 +119,7 @@ public final class Landing {
} else {
i--;
for (int j = 0; j < 6; j++) {
mac[j] = Byte.parseByte(args[++i], 16); // parses a hex
mac[j] = (byte) Integer.parseInt(args[++i], 16); // parses a hex
// number
}
}