Added Keybinding to toggle Path Preview Visibility

This commit is contained in:
CrushedPixel
2015-06-15 11:55:57 +02:00
committed by johni0702
parent 3df1bdcfc8
commit 3341b3e681
3 changed files with 7 additions and 0 deletions

View File

@@ -173,5 +173,9 @@ public class KeyInputHandler {
if(kb.getKeyDescription().equals(KeybindRegistry.KEY_KEYFRAME_PRESETS) && (kb.isPressed() || kb.getKeyCode() == keyCode)) {
mc.displayGuiScreen(new GuiKeyframeRepository(ReplayHandler.getKeyframeRepository()));
}
if(kb.getKeyDescription().equals(KeybindRegistry.KEY_PATH_PREVIEW) && (kb.isPressed() || kb.getKeyCode() == keyCode)) {
ReplayMod.replaySettings.setShowPathPreview(!ReplayMod.replaySettings.showPathPreview());
}
}
}