ConcurrentModificationException while loading world with mohist server
DPurple opened this issue ยท 3 comments
Describe the bug
throws ConcurrentModificationException while using mohist server which likely using a multi-threaded chunk loader
To Reproduce
Get a mohist server https://github.com/MohistMC/Mohist and installed
Put DynamicTrees 1.16.5 into mods directory and boot server
Additional context
I replaced HashMap into java.util.concurrent.ConcurrentHashMap in UniversalPoissonDiscProvider.java at line 19, it likely fixed the problem, but not further tested...
Crashes
https://pastebin.com/Dqe7bX1W
I'm using
DynamicTrees 0.10.0-Beta12 in 1.16.5
mohist version 1.16.5-679
which come wtih forge 1.16.5 - 36.1.32
here what I tried:
https://pastebin.com/5FZRn6LV
Please make sure you are also on the latest version. Beta 12 is quite old now.
I'm guessing they're making chunk data loading asynchronous? The change you made seems like it should be sufficient enough, feel free to open a PR.