ImageFrame icon indicating copy to clipboard operation
ImageFrame copied to clipboard

[Feature] Add a toggle to disable animated maps (or just for Bedrock players)

Open slash1div opened this issue 1 year ago • 1 comments

Animated maps currently crash my Velocity proxy when using Geyser. It's probably overloading the server translating the packets. Can you add a hook into Floodgate to check if a player is on Bedrock, and disable the map's playback? Or add a bool value to disable the animated maps entirely.

slash1div avatar Feb 25 '24 04:02 slash1div

Can confirm this also happens on a Paper server. The exact problem is Geyser has an out of memory exception when parsing the packets for map data. This can be implemented using the Geyser API and a simple if statement. Gradle and Maven repository information can be found at https://wiki.geysermc.org/geyser/getting-started-with-the-api/

@EventHandler
fun onPlayerJoin(event: PlayerJoinEvent) {
  if (GeyserApi.api().isBedrockPlayer(event.player.uniqueId)) println("${event.player.name} is a Bedrock player")
}

jschenke488 avatar May 18 '24 13:05 jschenke488