The TickAndRenderListener already handles the Keybindings, no need to do so in GuiMouseInput

This commit is contained in:
CrushedPixel
2015-08-20 11:42:13 +02:00
parent e4b52c62f8
commit fd5e351f82

View File

@@ -4,7 +4,6 @@ import eu.crushedpixel.replaymod.ReplayMod;
import eu.crushedpixel.replaymod.gui.overlay.GuiReplayOverlay;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.settings.KeyBinding;
import org.lwjgl.input.Mouse;
import java.io.IOException;
@@ -47,14 +46,6 @@ public class GuiMouseInput extends GuiScreen {
overlay.mouseDrag(mouseX, mouseY, clickedMouseButton);
}
@Override
protected void keyTyped(char typedChar, int keyCode) throws IOException {
for(KeyBinding kb : Minecraft.getMinecraft().gameSettings.keyBindings)
ReplayMod.keyInputHandler.handleCustomKeybindings(kb, false, keyCode);
super.keyTyped(typedChar, keyCode);
}
@Override
public void onGuiClosed() {
ReplayMod.overlay.closeToolbar();