mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2024-11-16 10:45:15 +01:00
fix text field
This commit is contained in:
parent
5764264e6a
commit
9a0a5e046b
@ -92,6 +92,7 @@ public class ViaConfigScreen extends Screen {
|
||||
protocolVersion.setListener(new ChangedListener(this::onChangeVersionField));
|
||||
int clientSideVersion = ViaFabric.config.getClientSideVersion();
|
||||
protocolVersion.setText(ProtocolUtils.getProtocolName(clientSideVersion));
|
||||
onChangeVersionField(protocolVersion.getText());
|
||||
|
||||
//this.children.add(protocolVersion);
|
||||
|
||||
@ -195,5 +196,17 @@ public class ViaConfigScreen extends Screen {
|
||||
super.tick();
|
||||
protocolVersion.tick();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void keyPressed(char character, int code) {
|
||||
super.keyPressed(character, code);
|
||||
protocolVersion.keyPressed(character, code);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void mouseClicked(int mouseX, int mouseY, int button) {
|
||||
super.mouseClicked(mouseX, mouseY, button);
|
||||
protocolVersion.mouseClicked(mouseX, mouseY, button);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user