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
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -3,6 +3,8 @@ package client.gui.element;
|
|||
import common.util.Util;
|
||||
|
||||
public class PasswordField extends Field {
|
||||
private byte[] passwordHash;
|
||||
|
||||
public PasswordField(int x, int y, int w, int h, int cap, FieldCallback callback, String text) {
|
||||
super(x, y, w, h, cap, callback, text);
|
||||
}
|
||||
|
@ -24,4 +26,9 @@ public class PasswordField extends Field {
|
|||
protected boolean canCopy() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public void updateText() {
|
||||
super.updateText();
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue