You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem or bug: When spawning a map inside an item frame (with the display set to be non global) the map display is shared between players that view the map when it's spawned. If only one players views the map when it's spawned and the others come near it later, it works as expected and creates a new instance of the map display. (Theres a video)
Expected behaviour: A different instance is created for all players near the map
Steps to reproduce: Make a map display which is not global and draws something unique to each instance on the map, then spawn it in an item frame next to multiple players.
The text was updated successfully, but these errors were encountered:
I want to check something with you.
I want to make sure it's not a race condition messing things up, where both instances try to update the counter at the same time, and just happened to get the same value (it's a common concurrent issue)
Try replacing the counter with an atomic integer (from java.util.concurrent.atomic.AtomicInteger), so it looks like
Tested this just incase but the issue still happens. Before submitting I had also tested different displays (like drawing stuff on click, printing the viewers onTick() and other stuff). I can assure you it's the same display. (Also sorry for the late response)
BkCommonLib version: 1.19.4-v2
Spigot version: 1.19.4
Problem or bug: When spawning a map inside an item frame (with the display set to be non global) the map display is shared between players that view the map when it's spawned. If only one players views the map when it's spawned and the others come near it later, it works as expected and creates a new instance of the map display. (Theres a video)
Code
Expected behaviour: A different instance is created for all players near the map
Steps to reproduce: Make a map display which is not global and draws something unique to each instance on the map, then spawn it in an item frame next to multiple players.
The text was updated successfully, but these errors were encountered: