Библиотеки от MCAnimator'a крашат.

1,057
50
234
Добрый день.
Поставил APIшку от MCA себе в мод, сделал моба с анимациями, но, время от времени клиент крашит с такой ошибкой:

Код:
[13:27:48] [Client thread/ERROR] [FML]: Exception caught during firing event cpw.mods.fml.common.gameevent.TickEvent$ClientTickEvent@1ef5710:
java.util.ConcurrentModificationException
    at java.util.ArrayList$Itr.checkForComodification(Unknown Source) ~[?:1.7.0_71]
    at java.util.ArrayList$Itr.next(Unknown Source) ~[?:1.7.0_71]
    at galaxyspace.SolarSystem.core.animations.MCACommonLibrary.animation.AnimTickHandler.onClientTick(AnimTickHandler.java:47) ~[AnimTickHandler.class:?]
    at cpw.mods.fml.common.eventhandler.ASMEventHandler_244_AnimTickHandler_onClientTick_ClientTickEvent.invoke(.dynamic) ~[?:?]
    at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54) ~[ASMEventHandler.class:?]
    at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:138) [EventBus.class:?]
    at cpw.mods.fml.common.FMLCommonHandler.onPreClientTick(FMLCommonHandler.java:325) [FMLCommonHandler.class:?]
    at net.minecraft.client.Minecraft.runTick(Minecraft.java:1679) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1040) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:962) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_71]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_71]
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
    at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
    at GradleStart.main(Unknown Source) [start/:?]
[13:27:48] [Client thread/ERROR] [FML]: Index: 17 Listeners:
[13:27:48] [Client thread/ERROR] [FML]: 0: NORMAL
[13:27:48] [Client thread/ERROR] [FML]: 1: ASM: galaxyspace.SolarSystem.core.handler.GSSkyProviderHandler@111d0da onSkyRendererTick(Lcpw/mods/fml/common/gameevent/TickEvent$ClientTickEvent;)V
[13:27:48] [Client thread/ERROR] [FML]: 2: ASM: galaxyspace.SolarSystem.core.handler.GSClientTickHandler@1d9a04 onClientTick(Lcpw/mods/fml/common/gameevent/TickEvent$ClientTickEvent;)V
[13:27:48] [Client thread/ERROR] [FML]: 3: ASM: am2.proxy.tick.ClientTickHandler@892ffa onClientTick(Lcpw/mods/fml/common/gameevent/TickEvent$ClientTickEvent;)V
[13:27:48] [Client thread/ERROR] [FML]: 4: ASM: stevekung.mods.moreplanets.core.handler.SkyProviderHandlerMP@91f28c onSkyRendererTick(Lcpw/mods/fml/common/gameevent/TickEvent$ClientTickEvent;)V
[13:27:48] [Client thread/ERROR] [FML]: 5: ASM: stevekung.mods.moreplanets.core.event.MorePlanetEvents@155cb42 onClientTick(Lcpw/mods/fml/common/gameevent/TickEvent$ClientTickEvent;)V
[13:27:48] [Client thread/ERROR] [FML]: 6: ASM: codechicken.nei.ClientHandler@cb39ef tickEvent(Lcpw/mods/fml/common/gameevent/TickEvent$ClientTickEvent;)V
[13:27:48] [Client thread/ERROR] [FML]: 7: ASM: codechicken.core.internal.CCCEventHandler@136d1d5 clientTick(Lcpw/mods/fml/common/gameevent/TickEvent$ClientTickEvent;)V
[13:27:48] [Client thread/ERROR] [FML]: 8: ASM: micdoodle8.mods.galacticraft.core.tick.TickHandlerClient@e24025 onClientTick(Lcpw/mods/fml/common/gameevent/TickEvent$ClientTickEvent;)V
[13:27:48] [Client thread/ERROR] [FML]: 9: ASM: micdoodle8.mods.galacticraft.core.tick.KeyHandlerClient@5000a6 onTick(Lcpw/mods/fml/common/gameevent/TickEvent$ClientTickEvent;)V
[13:27:48] [Client thread/ERROR] [FML]: 10: ASM: micdoodle8.mods.galacticraft.planets.asteroids.event.AsteroidsEventHandlerClient@c0453e onClientTick(Lcpw/mods/fml/common/gameevent/TickEvent$ClientTickEvent;)V
[13:27:48] [Client thread/ERROR] [FML]: 11: ASM: micdoodle8.mods.galacticraft.planets.mars.MarsModuleClient$TickHandlerClient@59187c onClientTick(Lcpw/mods/fml/common/gameevent/TickEvent$ClientTickEvent;)V
[13:27:48] [Client thread/ERROR] [FML]: 12: ASM: de.katzenpapst.amunra.proxy.ClientProxy$TickHandlerClient@10e52f8 onClientTick(Lcpw/mods/fml/common/gameevent/TickEvent$ClientTickEvent;)V
[13:27:48] [Client thread/ERROR] [FML]: 13: ASM: de.pitman87.TLSpecialArmor.client.ClientTickHandler@186b07e tickStart(Lcpw/mods/fml/common/gameevent/TickEvent$ClientTickEvent;)V
[13:27:48] [Client thread/ERROR] [FML]: 14: ASM: am2.particles.ParticleRenderer@fbcd48 onTickEnd(Lcpw/mods/fml/common/gameevent/TickEvent$ClientTickEvent;)V
[13:27:48] [Client thread/ERROR] [FML]: 15: ASM: codechicken.lib.world.WorldExtensionManager$WorldExtensionEventHandler@7c1141 clientTick(Lcpw/mods/fml/common/gameevent/TickEvent$ClientTickEvent;)V
[13:27:48] [Client thread/ERROR] [FML]: 16: ASM: codechicken.multipart.ControlKeyHandler$@1493771 tick(Lcpw/mods/fml/common/gameevent/TickEvent$ClientTickEvent;)V
[13:27:48] [Client thread/ERROR] [FML]: 17: ASM: galaxyspace.SolarSystem.core.animations.MCACommonLibrary.animation.AnimTickHandler@1519d7 onClientTick(Lcpw/mods/fml/common/gameevent/TickEvent$ClientTickEvent;)V
[13:28:03] [Server thread/INFO]: Stopping server

Ругается на эвенты ClientTickEvent....
Сам handler:

Код:
public class AnimTickHandler {
 public static ArrayList<IMCAnimatedEntity> activeEntities = new ArrayList<IMCAnimatedEntity>();
 public static ArrayList<IMCAnimatedEntity> removableEntities = new ArrayList<IMCAnimatedEntity>();

 public AnimTickHandler() {
 FMLCommonHandler.instance().bus().register(this);
 }

 public void addEntity(IMCAnimatedEntity entity) {
 activeEntities.add(entity);
 }

 //Called when the client ticks. 
 @SubscribeEvent
 public void onClientTick(TickEvent.ClientTickEvent event) {
 EntityClientPlayerMP player = Minecraft.getMinecraft().thePlayer;
 Minecraft minecraft = FMLClientHandler.instance().getClient();
 WorldClient world = minecraft.theWorld;
 
 if (Side.CLIENT != null) 
 {
 if (world != null)
 {
 if(event.phase == Phase.START) {
 
 if(!AnimTickHandler.activeEntities.isEmpty()) {
 
 for(IMCAnimatedEntity entity : AnimTickHandler.activeEntities) {
 entity.getAnimationHandler().animationsUpdate();

 if(((Entity)entity).isDead) {
 AnimTickHandler.removableEntities.add(entity);
 }
 }

 for(IMCAnimatedEntity entity : AnimTickHandler.removableEntities) {
 AnimTickHandler.activeEntities.remove(entity);
 }
 AnimTickHandler.removableEntities.clear();
 }
 }
 }
 }
 }
/*
 //Called when the server ticks. Usually 20 ticks a second. 
 @SubscribeEvent
 public void onServerTick(TickEvent.ServerTickEvent event) {
 if (Side.SERVER != null) 
 {
 if(event.phase == Phase.START) {

 if(!AnimTickHandler.activeEntities.isEmpty()) {
 
 for(IMCAnimatedEntity entity : AnimTickHandler.activeEntities) {
 entity.getAnimationHandler().animationsUpdate();

 if(((Entity)entity).isDead) {
 AnimTickHandler.removableEntities.add(entity);
 }
 }

 for(IMCAnimatedEntity entity : AnimTickHandler.removableEntities) {
 AnimTickHandler.activeEntities.remove(entity);
 }
 AnimTickHandler.removableEntities.clear();
 }
 
 }
 }
 }
*/
 //Called when a new frame is displayed (See fps) 
 @SubscribeEvent
 public void onRenderTick(TickEvent.RenderTickEvent event) {
 }

 //Called when the world ticks
 @SubscribeEvent
 public void onWorldTick(TickEvent.WorldTickEvent event) {
 }
}
 
Назад
Сверху