mirror of
https://github.com/FabricMC/fabric.git
synced 2025-03-23 21:40:02 -04:00
Fix getBoundKey() recursion (#896)
* Fix getBoundKey() recursion Signed-off-by: shedaniel <daniel@shedaniel.me> * Change to underscore Signed-off-by: shedaniel <daniel@shedaniel.me>
This commit is contained in:
parent
872498418c
commit
730711c6e2
3 changed files with 4 additions and 4 deletions
fabric-key-binding-api-v1
build.gradle
src/main/java/net/fabricmc/fabric
|
@ -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')
|
||||
|
|
|
@ -53,6 +53,6 @@ public final class KeyBindingHelper {
|
|||
* @return configured KeyCode
|
||||
*/
|
||||
public static InputUtil.Key getBoundKeyOf(KeyBinding keyBinding) {
|
||||
return ((KeyCodeAccessor) keyBinding).getBoundKey();
|
||||
return ((KeyCodeAccessor) keyBinding).fabric_getBoundKey();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,6 +24,6 @@ import net.minecraft.client.util.InputUtil;
|
|||
|
||||
@Mixin(KeyBinding.class)
|
||||
public interface KeyCodeAccessor {
|
||||
@Accessor
|
||||
InputUtil.Key getBoundKey();
|
||||
@Accessor("boundKey")
|
||||
InputUtil.Key fabric_getBoundKey();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue