Fabric API

Fabric API

108M Downloads

Biome API relies on RegistryEntry identity, which is not guaranteed

apple502j opened this issue ยท 0 comments

commented

To fix this:

  • IdentityHashMap needs to be replaced with Object2ObjectOpenCustomHashMap + custom Hash.Strategy.
  • a == b needs to be replaced with a.matches(b::matchesKey). (Only works for reference entries, but biome api shouldn't encounter direct entry.)