Skip to content

Commit

Permalink
Keybinding
Browse files Browse the repository at this point in the history
  • Loading branch information
MikhailTapio committed Nov 22, 2022
1 parent 1ccc1f8 commit 5513df5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package committee.nova.boatoverhaul.client;

import committee.nova.boatoverhaul.common.config.Config;
import committee.nova.boatoverhaul.common.key.Keys;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;

public class BoatOverhaulClient implements ClientModInitializer {
private static boolean allowSteeringWhenStopped;
Expand All @@ -25,6 +27,8 @@ public void onInitializeClient() {
allowSteeringWhenStopped = config.getOrDefault("allowRudderingWhenStopped", false);
reverseRudderWhenSailingAstern = config.getOrDefault("reverseRudderWhenSailingAstern", false);
speedMultiplier = config.getOrDefault("speedMultiplier", 1.0);
KeyBindingHelper.registerKeyBinding(Keys.keyLeftRudder);
KeyBindingHelper.registerKeyBinding(Keys.keyRightRudder);
}

@SuppressWarnings("unused")
Expand Down

0 comments on commit 5513df5

Please sign in to comment.