CraftCanvasMC / Canvas

Empowering the impossible within Minecraft
https://canvasmc.io
71 stars 6 forks source link

Entity Spawner ConcurrentModificationError #44

Closed TheDeafCreeper closed 3 months ago

TheDeafCreeper commented 3 months ago

Spark link

N/A

Stack trace

[19:46:10 WARN]: java.util.ConcurrentModificationException
[19:46:10 WARN]:        at java.base/java.util.ArrayList$Itr.checkForComodification(ArrayList.java:1095)
[19:46:10 WARN]:        at java.base/java.util.ArrayList$Itr.next(ArrayList.java:1049)
[19:46:10 WARN]:        at net.minecraft.world.level.EntityGetter.getNearestPlayer(EntityGetter.java:128)
[19:46:10 WARN]:        at net.minecraft.world.level.EntityGetter.getNearestPlayer(EntityGetter.java:171)
[19:46:10 WARN]:        at net.minecraft.world.level.NaturalSpawner.spawnCategoryForPosition(NaturalSpawner.java:257)
[19:46:10 WARN]:        at net.minecraft.world.level.NaturalSpawner.spawnCategoryForChunk(NaturalSpawner.java:208)
[19:46:10 WARN]:        at net.minecraft.world.level.NaturalSpawner.spawnForChunk(NaturalSpawner.java:178)
[19:46:10 WARN]:        at net.minecraft.server.level.ServerChunkCache.tickChunks(ServerChunkCache.java:505)
[19:46:10 WARN]:        at net.minecraft.server.level.ServerChunkCache.tick(ServerChunkCache.java:413)
[19:46:10 WARN]:        at net.minecraft.server.level.ServerLevel.endTick$tickChunks(ServerLevel.java:782)
[19:46:10 WARN]:        at net.minecraft.server.level.ServerLevel.lambda$tick$10(ServerLevel.java:1125)
[19:46:10 WARN]:        at net.minecraft.server.level.ServerLevel.runWorld(ServerLevel.java:844)
[19:46:10 WARN]:        at me.dueris.canvas.thread.WorldTickThread.run(WorldTickThread.java:19)

Actions to reproduce (if known)

Seems to happen randomly, mainly when a player joins?

Canvas version

Current Canvas Version: 1.21-DEV-7dfc70c (MC: 1.21)*

Agreements

Other

No response

Dueris commented 3 months ago

should also be fixed now