upgrade to java 21, remove netty unsafe, remove deprecated features
This commit is contained in:
parent
b14e539464
commit
18be47866c
58 changed files with 120 additions and 2887 deletions
|
@ -11,7 +11,7 @@ dependencies {
|
|||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(8)
|
||||
languageVersion = JavaLanguageVersion.of(21)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue