troed/Courier

Client caches map on world change

Opened this issue · 0 comments

With 1.8 Mojang made the minecraft client cache the canvas of a particular map (based on map id) on world change, causing it to cease updating thereafter until relogging. This affects vanilla minecraft, it has been reported here:

https://bugs.mojang.com/browse/MC-80297
https://bugs.mojang.com/browse/MC-46345
https://bugs.mojang.com/browse/MC-80782

I also use maps for a different plugin, I was able to 'fix' the issue by caching an index per player and incrementing it every time the player changes worlds and resetting it on login. This ensures that every time I hand out the map item it is a clean map that the client hasn't cached. It works for me because I give out a new map item every time. I am not sure of this will work for Courier as well.