Some more debug?

This commit is contained in:
zontreck 2023-12-06 09:34:38 -07:00
parent 9ba7ae5724
commit 611aa4e351
2 changed files with 8 additions and 1 deletions

View file

@ -47,6 +47,7 @@ import dev.zontreck.ariaslib.args.*;
import dev.zontreck.ariaslib.http.HTTPMethod;
import dev.zontreck.ariaslib.http.HTTPRequestBuilder;
import dev.zontreck.ariaslib.http.HTTPResponse;
import dev.zontreck.ariaslib.util.EnvironmentUtils;
import org.lwjgl.BufferUtils;
import org.lwjgl.LWJGLException;
import org.lwjgl.input.Controllers;
@ -1216,6 +1217,11 @@ public final class Minecraft implements Runnable {
public static void main(String[] args) {
if(System.getProperty("minecraft.auth_token") == "")
{
// Set debug values
args = new String[] {"--username=zontreck"};
}
Minecraft minecraft = new Minecraft((Canvas) null, 800, 600, false);
Random rng = new Random();
@ -1229,6 +1235,7 @@ public final class Minecraft implements Runnable {
if (parser.hasArg("username"))
minecraft.user = new User(unArg.getValue(), System.getProperty("minecraft.auth_token"));
else minecraft.user = new User("Player", "-");
if (parser.hasArg("server")) {
IntegerArgument serverArg = (IntegerArgument) parser.getArg("server");

View file

@ -565,7 +565,7 @@ public class MinecraftServer implements Runnable {
return var2;
}
public static void main(String[] var0) {
public static void main(String[] args) {
try {
MinecraftServer var6 = new MinecraftServer();
MinecraftServer var1 = var6;