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

@ -150,7 +150,8 @@ public final class Server implements IThreadListener {
public static void main(String[] args) {
long time = System.currentTimeMillis();
Util.checkOs();
Util.checkPlatform();
Log.init();
Registry.setup("Server thread");
Log.SYSTEM.info("Starte " + Version.NAME + " Server Version " + Util.VERSION + " (Protokoll #" + Util.PROTOCOL + ")");
GenBiome.setAsProvider();
@ -164,6 +165,7 @@ public final class Server implements IThreadListener {
server.stopServer();
}
});
Log.setSync(server);
server.run(time);
Region.killIO();
Log.flushLog();

View file

@ -46,7 +46,7 @@ public class MapGenStructureIO
if (oclass != null)
{
structurestart = (StructureStart)oclass.newInstance();
structurestart = (StructureStart)oclass.getConstructor().newInstance();
}
}
catch (Exception exception)
@ -77,7 +77,7 @@ public class MapGenStructureIO
if (oclass != null)
{
structurecomponent = (StructureComponent)oclass.newInstance();
structurecomponent = (StructureComponent)oclass.getConstructor().newInstance();
}
}
catch (Exception exception)