Skip to content

Commit

Permalink
Fix getBoundKey() recursion (#896)
Browse files Browse the repository at this point in the history
* Fix getBoundKey() recursion

Signed-off-by: shedaniel <daniel@shedaniel.me>

* Change to underscore

Signed-off-by: shedaniel <daniel@shedaniel.me>
  • Loading branch information
shedaniel authored and modmuss50 committed Jul 20, 2020
1 parent 8724984 commit 730711c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fabric-key-binding-api-v1/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
archivesBaseName = "fabric-key-binding-api-v1"
version = getSubprojectVersion(project, "1.0.0")
version = getSubprojectVersion(project, "1.0.1")

dependencies {
testmodCompile project(path: ':fabric-api-base', configuration: 'dev')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ public static KeyBinding registerKeyBinding(KeyBinding keyBinding) {
* @return configured KeyCode
*/
public static InputUtil.Key getBoundKeyOf(KeyBinding keyBinding) {
return ((KeyCodeAccessor) keyBinding).getBoundKey();
return ((KeyCodeAccessor) keyBinding).fabric_getBoundKey();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@

@Mixin(KeyBinding.class)
public interface KeyCodeAccessor {
@Accessor
InputUtil.Key getBoundKey();
@Accessor("boundKey")
InputUtil.Key fabric_getBoundKey();
}

0 comments on commit 730711c

Please sign in to comment.