@Override
public void keyDown(Type types, KeyBinding kb, boolean tickEnd, boolean isRepeat)
{
if (KeyHandlerClient.mc.thePlayer != null && tickEnd)
{
EntityClientPlayerMP playerBase = PlayerUtil.getPlayerBaseClientFromPlayer(KeyHandlerClient.mc.thePlayer, false);
GCPlayerStatsClient stats = GCPlayerStatsClient.get(playerBase);
if (kb.getKeyCode() == KeyHandlerClient.galaxyMap.getKeyCode())
{
if (KeyHandlerClient.mc.currentScreen == null)
{
KeyHandlerClient.mc.thePlayer.openGui(GalacticraftCore.instance, GuiIdsCore.GALAXY_MAP, KeyHandlerClient.mc.theWorld, (int) KeyHandlerClient.mc.thePlayer.posX, (int) KeyHandlerClient.mc.thePlayer.posY, (int) KeyHandlerClient.mc.thePlayer.posZ);
}
}
else if (kb.getKeyCode() == KeyHandlerClient.openFuelGui.getKeyCode())
{
if (playerBase.ridingEntity instanceof EntitySpaceshipBase || playerBase.ridingEntity instanceof EntityBuggy)
{
GalacticraftCore.packetPipeline.sendToServer(new PacketSimple(EnumSimplePacket.S_OPEN_FUEL_GUI, new Object[] { playerBase.getGameProfile().getName() }));
}
}
else if (kb.getKeyCode() == KeyHandlerClient.toggleAdvGoggles.getKeyCode())
{
if (playerBase != null)