1
0
Fork 0

upgrade to java 21, remove netty unsafe, remove deprecated features

This commit is contained in:
Sen 2025-05-30 12:49:37 +02:00
parent b14e539464
commit 18be47866c
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
58 changed files with 120 additions and 2887 deletions

View file

@ -2214,7 +2214,7 @@ public class Client implements IThreadListener {
}
}
public void run() {
public void run(long time) {
Log.SYSTEM.info("Java " + System.getProperty("java.version"));
Log.SYSTEM.info(VERSION + " (Protokoll #" + Util.PROTOCOL + ")");
if(!Window.createWindow(VERSION, System.getProperty("opengl.debug") != null))
@ -2240,6 +2240,7 @@ public class Client implements IThreadListener {
// this.startSound(true);
this.getVar("tic_target").setDefault();
this.displayGuiScreen(GuiMenu.INSTANCE);
Log.SYSTEM.info("Client gestartet in " + String.format("%.1f", (double)(System.currentTimeMillis() - time) / 1000.0) + " Sekunden");
while(!this.interrupted) {
PerfSection.swap();
@ -2733,13 +2734,15 @@ public class Client implements IThreadListener {
public static void main(String[] args) {
Util.checkOs();
Log.init(CLIENT);
long time = System.currentTimeMillis();
Util.checkPlatform();
Log.init();
Log.setSync(CLIENT);
Window.init();
ModelBlock.setAsProvider();
Registry.setup("Render thread");
UniverseRegistry.register();
CLIENT.run();
CLIENT.run(time);
Window.end();
}