Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @SubscribeEvent
- public static void keybindEvent(ClientTickEvent event) {
- if (Minecraft.getMinecraft().inGameHasFocus) {
- KeybindInterface keybindInterface = Minecraft.getMinecraft().player
- .getCapability(KeybindProvider.capability, null);
- if (keybindInterface.getKeybindDown() != Minecraft.getMinecraft().gameSettings.keyBindSprint.isKeyDown()) {
- Main.networkInstance.sendToServer(new KeybindMessage(Minecraft.getMinecraft().gameSettings.keyBindSprint.isKeyDown()));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement