Skip to content

Commit

Permalink
Change default key mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
klima7 committed Feb 4, 2023
1 parent a0a8ea1 commit 0bfa4ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ plugins {
id 'net.minecraftforge.gradle' version '5.1.+'
}

version = '1.0.0'
version = '1.0.1'
group = 'com.github.klima7'
archivesBaseName = 'modid'
archivesBaseName = 'rubiks_cube'

java.toolchain.languageVersion = JavaLanguageVersion.of(17)

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/github/klima7/client/KeyInit.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ private KeyInit() {}

public static final List<KeyMapping> KEY_MAPPINGS = new ArrayList<>();

public static KeyMapping REVERSE = registerKey("reverse", KeyMapping.CATEGORY_GAMEPLAY, InputConstants.KEY_R);
public static KeyMapping ROTATE = registerKey("rotate", KeyMapping.CATEGORY_GAMEPLAY, InputConstants.KEY_T);
public static KeyMapping REVERSE = registerKey("reverse", KeyMapping.CATEGORY_GAMEPLAY, InputConstants.KEY_LCONTROL);
public static KeyMapping ROTATE = registerKey("rotate", KeyMapping.CATEGORY_GAMEPLAY, InputConstants.KEY_R);

private static KeyMapping registerKey(String name, String category, int keycode) {
KeyMapping keyMapping = new KeyMapping("key." + RubiksCubeMod.MODID + "." + name, keycode, category);
Expand Down

0 comments on commit 0bfa4ea

Please sign in to comment.