Mojira Archive
MC-118236

Pressing Esc key in download server resource pack prompt does not send CPacketResourcePackStatus.Action.DECLINED to server

The bug

Pressing the Esc (escape) key when the server resource pack prompt is open does not send the packet telling the server that the player refused to download the pack to the server.

How to reproduce

  1. Connect to play.cubecraft.net
  2. Use the "Travel" compass to get to "Lucky Islands" (sponge block)
  3. Click "No"
    → A notification appears in chat
  4. Repeat steps 1 and 2 and press Esc this time
    → No message appears in chat

Code analysis

Based on 1.11.2 decompiled using MCP 9.35 rc1

The GUI net.minecraft.client.network.NetHandlerPlayClient.handleResourcePack().new Runnable() {...}.run().new GuiYesNoCallback() {...}.() only sends the net.minecraft.network.play.client.CPacketResourcePackStatus.Action.DECLINED value to the server when the player clicks "No", but not when the Esc key is pressed (see method net.minecraft.client.gui.GuiScreen.keyTyped(char, int)).

Fixed

Marcono1234

2017-06-03, 10:59 PM

2020-08-12, 12:12 AM

2020-02-14, 02:09 PM

2

1

Confirmed

(Unassigned)

ESC, cancel, escape, gui, resource-pack, server

Minecraft 1.11.2, Minecraft 1.12.2

1.15.2