Advertisement
Guest User

Untitled

a guest
Apr 30th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. @SubscribeEvent
  2. public static void keybindEvent(ClientTickEvent event) {
  3. if (Minecraft.getMinecraft().inGameHasFocus) {
  4. KeybindInterface keybindInterface = Minecraft.getMinecraft().player
  5. .getCapability(KeybindProvider.capability, null);
  6. if (keybindInterface.getKeybindDown() != Minecraft.getMinecraft().gameSettings.keyBindSprint.isKeyDown()) {
  7. Main.networkInstance.sendToServer(new KeybindMessage(Minecraft.getMinecraft().gameSettings.keyBindSprint.isKeyDown()));
  8. }
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement