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).
Putting things in a HashMap would trigger an
equals
&hashCode
comparison logic. In this case, the comparison logic forItemFrame
would trigger a thread check & exception would occur.This PR changed
HashMap
toIdentityHashMap
in order to change the logic to simply check if theItemFrame
is exactly the same (==
comparision).That seems to fix the thread exception.