SamB440 / ForcePack

Spigot/Velocity plugin to aid resource pack deployment and enforcement, among other utilities.
https://fortitude.islandearth.net/category/forcepack
GNU General Public License v3.0
51 stars 17 forks source link

Legacy: ESC bypass prevention causes multiple resource pack loads #57

Open SamB440 opened 7 months ago

SamB440 commented 7 months ago

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.