ForcePack icon indicating copy to clipboard operation
ForcePack copied to clipboard

Legacy: ESC bypass prevention causes multiple resource pack loads

Open SamB440 opened this issue 1 year ago • 0 comments

We are currently resending the resource pack to open the prompt screen constantly.

But if the player accepts, they could then receive another resource pack packet, which will cause it to load twice, or even worse fail download as it's sent whilst the player is already loading a resource pack.

I thought this was working fine for the past few years. I'm not sure why it doesn't work now - we do use packets instead of API methods, but esc out doesn't tell the server when it does so, and I don't think Spigot would be doing anything anyway, so this must have always been a bug.

I don't know how to fix this. I do wonder how FRP (https://www.spigotmc.org/resources/force-resourcepacks.10499/) handles this.

SamB440 avatar Feb 10 '24 10:02 SamB440