Skip to content

Commit

Permalink
fix: switch keybinds to the correct mod bus
Browse files Browse the repository at this point in the history
  • Loading branch information
sekwah41 committed Jul 12, 2022
1 parent 140f473 commit c669e23
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ dependencies {
implementation 'org.spongepowered:mixin:0.8.5'
annotationProcessor 'org.spongepowered:mixin:0.8.5:processor'

implementation fg.deobf("com.sekwah:SekCLib:0.4.0")
implementation fg.deobf("com.sekwah:SekCLib:0.4.1")
// Trick intellij to allow for better editing in here for the discord task
// compile "org.apache.httpcomponents:httpmime:4.5.13"
//implementation fg.deobf("curse.maven:torohealth-damage-indicators-245733:3556931")
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/sekwah/narutomod/NarutoMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public NarutoMod() {
eventBus.addListener(this::registerCapabilities);
eventBus.addListener(this::registerCapabilitySync);
eventBus.addListener(NarutoRegistries::init);
eventBus.addListener(NarutoKeyHandler::registerKeyBinds);

NarutoSounds.register(eventBus);
NarutoDataSerialisers.register(eventBus);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ public class NarutoKeyHandler {
private static KeyBindingTickHeld JUTSU_V_KEY;
private static KeyBindingTickHeld JUTSU_B_KEY;

/**
* Attached on the main NarutoMod file to the mod bus as this isn't a forge bus event
* @param event
*/
@SubscribeEvent
public static void registerKeyBinds(RegisterKeyMappingsEvent event) {
LEAP_KEY = registerKeyBind("naruto.keys.leap", KeyEvent.VK_X, event);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ A mod that adds new items and other features to the game that are from/based on
[[dependencies.narutomod]]
modId="sekclib"
mandatory=true
versionRange="[0.4.0,)"
versionRange="[0.4.1,)"
ordering="NONE"
side="BOTH"

0 comments on commit c669e23

Please sign in to comment.