Hey, I'm currently working on a world generator and today I randomly got this error generating a world :
This is the first time I've gotten it in over 300 generations with the same class, it happened completely randomly. In my opinion this seems to come from the (paper) spigot api.
I'm not sure if it comes from either PaperSpigot, Spigot or my version of PaperSpigot.
The version I'm currently using that received the error is is git-Paper-241 (MC: 1.20.2).
And since I can't reproduce it because it's totally random, I'm looking for help to solve this because I have no idea where it could come from.
This is my code, what I'm doing basically here is placing dripstones in my world, really simple code :
Thanks for your help.
java.lang.Throwable: java.util.ConcurrentModificationExceptionat io.papermc.pa - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
pastebin.com
This is the first time I've gotten it in over 300 generations with the same class, it happened completely randomly. In my opinion this seems to come from the (paper) spigot api.
I'm not sure if it comes from either PaperSpigot, Spigot or my version of PaperSpigot.
The version I'm currently using that received the error is is git-Paper-241 (MC: 1.20.2).
And since I can't reproduce it because it's totally random, I'm looking for help to solve this because I have no idea where it could come from.
This is my code, what I'm doing basically here is placing dripstones in my world, really simple code :
Java:
// Dripstone
if(rand < 0.015) {
int dripstoneSize = 2+random.nextInt(3);
for (int i = 0; i < dripstoneSize; i++) {
PointedDripstone dripstone = (PointedDripstone) Bukkit.createBlockData(Material.POINTED_DRIPSTONE);
dripstone.setVerticalDirection(BlockFace.DOWN);
PointedDripstone.Thickness thickness = null;
if(i == dripstoneSize - 1) thickness = PointedDripstone.Thickness.TIP;
if(i == dripstoneSize - 2) thickness = PointedDripstone.Thickness.FRUSTUM;
if(i == dripstoneSize - 3) thickness = PointedDripstone.Thickness.MIDDLE;
if(i == dripstoneSize - 4) thickness = PointedDripstone.Thickness.BASE;
dripstone.setThickness(thickness); # line 105 CaveDecoration.java
chunkData.setBlock(x,y-1-i,z, dripstone);
}
}
Thanks for your help.