minor bugs fix
This commit is contained in:
parent
3335a0e866
commit
ea294e1cd6
|
|
@ -12,8 +12,10 @@ java.toolchain.languageVersion = JavaLanguageVersion.of(17)
|
|||
|
||||
println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch'))
|
||||
minecraft {
|
||||
mappings channel: 'official', version: '1.19.2'
|
||||
//accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
|
||||
mappings channel: 'official', version: '1.19'
|
||||
|
||||
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
|
||||
|
||||
runs {
|
||||
client {
|
||||
properties 'mixin.env.remapRefMap': 'true'
|
||||
|
|
|
|||
|
|
@ -157,9 +157,9 @@ public class GuiKeyboard extends WDScreen {
|
|||
}
|
||||
if(hasShiftDown()) {
|
||||
keystr = keystr.toUpperCase(Locale.ROOT);
|
||||
return CefBrowserOsr.remapKeycode(keyCode, keystr.charAt(keystr.length() - 1));
|
||||
return CefBrowserOsr.remapKeycode(keyCode, keystr.charAt(keystr.length() - 1), 0);
|
||||
} else {
|
||||
return CefBrowserOsr.remapKeycode(keyCode, keystr.charAt(keystr.length() - 1));
|
||||
return CefBrowserOsr.remapKeycode(keyCode, keystr.charAt(keystr.length() - 1), 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -272,14 +272,6 @@ public class TextField extends Control {
|
|||
field.setFocus(true);
|
||||
}
|
||||
|
||||
public void setMaxLength(int len) {
|
||||
field.setMaxLength(len);
|
||||
}
|
||||
|
||||
public int getMaxLength() {
|
||||
return field.getMaxLength(); //TODO: access transformer
|
||||
}
|
||||
|
||||
public void setTextColor(int color) {
|
||||
field.setTextColor(color);
|
||||
textColor = color;
|
||||
|
|
|
|||
|
|
@ -1,2 +1 @@
|
|||
public net.minecraft.client.gui.components.EditBox m94216()I # getMaxLength
|
||||
public net.minecraft.client.resources.sounds.SimpleSoundInstance
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user