Guard AI error
MatthiasMann opened this issue ยท 0 comments
Version: minecolonies-0.13.43-alpha
Expected behavior
No AI error
Actual behaviour
Guard has an AI error:
[minecolonies/]: Statemachine for transition com.minecolonies.api.entity.ai.statemachine.AITarget@65e7a47c threw an exception:
java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.Arrays$ArrayList.get(Arrays.java:3841) ~[?:1.8.0_252]
at net.minecraft.util.NonNullList.get(SourceFile:46) ~[?:?]
at com.minecolonies.api.inventory.InventoryCitizen.getStackInSlot(InventoryCitizen.java:244) ~[?:0.13.43-ALPHA]
at com.minecolonies.api.inventory.InventoryCitizen.getHeldItem(InventoryCitizen.java:115) ~[?:0.13.43-ALPHA]
at com.minecolonies.coremod.entity.citizen.citizenhandlers.CitizenItemHandler.damageItemInHand(CitizenItemHandler.java:231) ~[?:0.13.43-ALPHA]
at com.minecolonies.coremod.entity.ai.citizen.trainingcamps.EntityAICombatTraining.attack(EntityAICombatTraining.java:202) ~[?:0.13.43-ALPHA]
at com.minecolonies.api.entity.ai.statemachine.basestatemachine.BasicTransition.getNextState(BasicTransition.java:79) ~[?:0.13.43-ALPHA]
at com.minecolonies.api.entity.ai.statemachine.basestatemachine.BasicStateMachine.transitionToNext(BasicStateMachine.java:148) ~[?:0.13.43-ALPHA]
at com.minecolonies.api.entity.ai.statemachine.basestatemachine.BasicStateMachine.checkTransition(BasicStateMachine.java:134) ~[?:0.13.43-ALPHA]
at com.minecolonies.api.entity.ai.statemachine.tickratestatemachine.TickRateStateMachine.checkTransition(TickRateStateMachine.java:126) ~[?:0.13.43-ALPHA]
at com.minecolonies.api.entity.ai.statemachine.tickratestatemachine.TickRateStateMachine.tick(TickRateStateMachine.java:105) ~[?:0.13.43-ALPHA]
at com.minecolonies.coremod.entity.ai.basic.AbstractAISkeleton.func_75246_d(AbstractAISkeleton.java:127) ~[?:0.13.43-ALPHA]
at net.minecraft.entity.ai.goal.PrioritizedGoal.func_75246_d(SourceFile:55) ~[?:?]
at com.performant.coremod.entity.ai.CustomGoalSelector.func_75774_a(CustomGoalSelector.java:368) ~[?:1.15-2.11m]
at net.minecraft.entity.MobEntity.func_70626_be(MobEntity.java:595) ~[?:?]
at net.minecraft.entity.LivingEntity.func_70636_d(LivingEntity.java:2262) ~[?:?]
at net.minecraft.entity.MobEntity.func_70636_d(MobEntity.java:1307) ~[?:?]
at net.minecraft.entity.AgeableEntity.func_70636_d(SourceFile:159) ~[?:?]
at com.minecolonies.coremod.entity.citizen.EntityCitizen.func_70636_d(EntityCitizen.java:390) ~[?:0.13.43-ALPHA]
at net.minecraft.entity.LivingEntity.func_70071_h_(LivingEntity.java:2104) ~[?:?]
at net.minecraft.entity.MobEntity.func_70071_h_(MobEntity.java:274) ~[?:?]
at net.minecraft.world.server.ServerWorld.func_217479_a(ServerWorld.java:600) ~[?:?]
at net.minecraft.world.World.func_217390_a(World.java:536) [?:?]
at net.minecraft.world.server.ServerWorld.func_72835_b(ServerWorld.java:401) [?:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:849) [?:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:784) [?:?]
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:114) [?:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:637) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]
Steps to reproduce the problem
No idea