Closed octylFractal closed 2 years ago
https://github.com/MinecraftForge/SrgUtils/commit/5a55d872510e41a1382ce797193e5e57770ac4f7 Should of solved this, if not see if someone can make a reproduction case.
Is that part of the latest ForgeGradle (5.1.26)? If so, I am reproducing this right now locally by importing this branch/PR of WorldEdit. I can setup a smaller reproducer if you like.
Not a fan of this shotgun approach because reads should be safe. But guess there is a JRE specific implementation issue. Committed myself because I also included reverting the attempted fix.
These maps are referenced across threads in other places, so the methods should be thread-safe.
This fixes an error in FG where the cache in
MappedFile
is accessed asynchronously, resulting in the following exception: