nossr50/mcMMO — Issue #170: [SEVERE] Could not pass event ENTITY_DEATH to Spout
Author: oloflarsson
Created: 2011-12-09 14:25:17+00:00
State: open

I saw this ConcurrentModificationException once when running:
Spout Version 617
Craftbukkit git-Bukkit-1.8.1-R4-95-g7895ba6-b1566jnks (MC: 1.0.1)
mcMMO Version: 1.2.06

https://github.com/SpoutDev/Spout/issues/1181#issuecomment-3079252

Message from Affores:
"""Please let nossr50 he can't use multithreading to damage or kill Entities. """

12:55:11 [SEVERE] Could not pass event ENTITY_DEATH to Spout
java.util.ConcurrentModificationException
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:819)
at java.util.ArrayList$Itr.next(ArrayList.java:791)
at org.bukkit.craftbukkit.CraftWorld.getPlayers(CraftWorld.java:524)
at org.getspout.spout.entity.tracker.EntityTrackerManager.onEntityDeath(EntityTrackerManager.java:73)
at org.getspout.spout.SpoutEntityListener.onEntityDeath(SpoutEntityListener.java:45)
at org.bukkit.plugin.java.JavaPluginLoader$64.execute(JavaPluginLoader.java:707)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
at org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDeathEvent(CraftEventFactory.java:305)
at net.minecraft.server.EntitySkeleton.dropDeathLoot(EntitySkeleton.java:116)
at net.minecraft.server.EntityLiving.die(EntityLiving.java:606)
at net.minecraft.server.EntitySkeleton.die(EntitySkeleton.java:38)
at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:502)
at net.minecraft.server.EntityMonster.damageEntity(EntityMonster.java:44)
at net.minecraft.server.EntitySkeleton.damageEntity(EntitySkeleton.java:34)
at org.bukkit.craftbukkit.entity.CraftLivingEntity.damage(CraftLivingEntity.java:168)
at com.gmail.nossr50.skills.Swords.bleedSimulate(Swords.java:248)
at com.gmail.nossr50.runnables.mcTimer.run(mcTimer.java:72)
at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
at java.lang.Thread.run(Thread.java:722)