LOOHP / ImageFrame

Put images on maps and walls!
https://www.spigotmc.org/resources/106031/
GNU General Public License v3.0
50 stars 14 forks source link

use IdentityHashMap to fix a thread error in Folia #35

Closed HSGamer closed 10 months ago

HSGamer commented 11 months ago

Putting things in a HashMap would trigger an equals & hashCode comparison logic. In this case, the comparison logic for ItemFrame would trigger a thread check & exception would occur.

This PR changed HashMap to IdentityHashMap in order to change the logic to simply check if the ItemFrame is exactly the same (== comparision).

That seems to fix the thread exception.

HSGamer commented 10 months ago

Continue in #37