ForcePack
ForcePack copied to clipboard
Legacy: ESC bypass prevention causes multiple resource pack loads
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.