Skip to content

Commit

Permalink
UDOC-0 - Fix tab autocomplete when using SPC (press tab twice)
Browse files Browse the repository at this point in the history
  • Loading branch information
telvarost committed Apr 27, 2024
1 parent 9fd515d commit bcc5e07
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- Fix container offset when swapping items to hotbar slots
- Fix tab autocomplete when using SPC (press tab twice)
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ dependencies {
modImplementation("net.glasslauncher:HowManyItems-Fabric-Unofficial:${project.howmanyitems_version}") {
transitive false
}
modImplementation('com.github.matthewperiut:spc-babric:0.4.3') {
transitive false
}
}

processResources {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ yarn_mappings=b1.7.3+build.8
loader_version=0.14.24-babric.1

# Mod Properties
mod_version = 1.3.2
mod_version = 1.3.3
maven_group = pl.telvarost
archives_base_name = mojangfixstationapi

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ private void onKeyPressedEntry(char character, int keyCode, CallbackInfo ci) {
}
}

@Inject(method = "keyPressed", at = @At("HEAD"))
private void onKeyPressedHead(char character, int keyCode, CallbackInfo ci) {
textField.setText(text);
}

@Inject(method = "keyPressed", at = @At("TAIL"))
private void onKeyPressedTail(char character, int keyCode, CallbackInfo ci) {
textField.keyPressed(character, keyCode);
Expand Down

0 comments on commit bcc5e07

Please sign in to comment.