minor bugs fix

This commit is contained in:
Mysticpasta1 2023-03-05 04:18:02 -06:00
parent 3335a0e866
commit ea294e1cd6
4 changed files with 6 additions and 13 deletions

View File

@ -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'

View File

@ -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);
}
}

View File

@ -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;

View File

@ -1,2 +1 @@
public net.minecraft.client.gui.components.EditBox m94216()I # getMaxLength
public net.minecraft.client.resources.sounds.SimpleSoundInstance