运行我的Minecraft服务器和java arrayOutofBounds如何解决这个问题?

时间:2016-09-28 14:11:39

标签: java server minecraft-forge

以下是错误代码:

----我的世界崩溃报告---- //你想要一块蛋糕吗?

时间:9/28/16 9:44 AM 描述:滴答实体

java.lang.ArrayIndexOutOfBoundsException: 11
at buildcraft.silicon.BlockLaser.func_149743_a(BlockLaser.java:84)
at net.minecraft.world.World.func_72945_a(World.java:1437)
at cofh.asmhooks.HooksCore.getEntityCollisionBoxes(HooksCore.java:118)
at net.minecraft.entity.Entity.func_70091_d(Entity.java:596)
at net.minecraft.entity.EntityLivingBase.func_70612_e(EntityLivingBase.java:1490)
at net.minecraft.entity.EntityLivingBase.func_70636_d(EntityLivingBase.java:1814)
at net.minecraft.entity.EntityLiving.func_70636_d(EntityLiving.java:367)
at net.minecraft.entity.EntityAgeable.func_70636_d(SourceFile:95)
at net.minecraft.entity.passive.EntityAnimal.func_70636_d(SourceFile:37)
at net.minecraft.entity.EntityLivingBase.func_70071_h_(EntityLivingBase.java:1611)
at net.minecraft.entity.EntityLiving.func_70071_h_(EntityLiving.java:206)
at net.minecraft.world.World.func_72866_a(World.java:2070)
at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:648)
at net.minecraft.world.World.func_72870_g(World.java:2034)
at net.minecraft.world.World.func_72939_s(World.java:1887)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:489)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:636)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:334)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)

错误的详细演练,其代码路径和所有已知详细信息如下:

-- Head --
Stacktrace:
    at buildcraft.silicon.BlockLaser.func_149743_a(BlockLaser.java:84)
    at net.minecraft.world.World.func_72945_a(World.java:1437)
    at cofh.asmhooks.HooksCore.getEntityCollisionBoxes(HooksCore.java:118)
    at net.minecraft.entity.Entity.func_70091_d(Entity.java:596)
    at net.minecraft.entity.EntityLivingBase.func_70612_e(EntityLivingBase.java:1490)
    at net.minecraft.entity.EntityLivingBase.func_70636_d(EntityLivingBase.java:1814)
    at net.minecraft.entity.EntityLiving.func_70636_d(EntityLiving.java:367)
    at net.minecraft.entity.EntityAgeable.func_70636_d(SourceFile:95)
    at net.minecraft.entity.passive.EntityAnimal.func_70636_d(SourceFile:37)
    at net.minecraft.entity.EntityLivingBase.func_70071_h_(EntityLivingBase.java:1611)
    at net.minecraft.entity.EntityLiving.func_70071_h_(EntityLiving.java:206)
    at net.minecraft.world.World.func_72866_a(World.java:2070)
    at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:648)
    at net.minecraft.world.World.func_72870_g(World.java:2034)

-- Entity being ticked --
Details:
    Entity Type: Cow (net.minecraft.entity.passive.EntityCow)
    Entity ID: 23
    Entity Name: Cow
    Entity's Exact location: -87.50, 65.00, 314.89
    Entity's Block location: World: (-88,65,314), Chunk: (at 8,4,10 in -6,19; contains blocks -96,0,304 to -81,255,319), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
    Entity's Momentum: -0.08, -0.08, -0.03
Stacktrace:
    at net.minecraft.world.World.func_72939_s(World.java:1887)
    at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:489)

我已经删除了这些动物但发生的事情是世界被破坏了。

2 个答案:

答案 0 :(得分:1)

  

ArrayIndexOutOfBoundsExeption

表示您尝试访问不存在的数组中的位置。请注意,该位置始终从0开始。

E.g。

int[] number = new int[5];

System.out.println(number[4]);
System.out.println(number[5]); //ArrayIndexOutOfBoundsException

答案 1 :(得分:0)

问题在于BuildCraft模块,特别是其中的激光模块。您需要在https://github.com/BuildCraft/BuildCraft/issues

向BuildCraft开发人员报告此问题