Terrain Control

Terrain Control

235k Downloads

ArrayIndexOutOfBoundsException while generating chunks

Runemoro opened this issue ยท 3 comments

commented

This kicks the player for Internal Server Error and crashes it if you continue going n that direction

18:55:36 [SEVERE] Encountered an unexpected exception ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException: -128
at com.khorn.terraincontrol.bukkit.BukkitWorld.DoBiomeReplace(BukkitWorld.java:293)
at com.khorn.terraincontrol.generator.ObjectSpawner.populate(ObjectSpawner.java:86)
at com.khorn.terraincontrol.bukkit.TCBlockPopulator.populate(TCBlockPopulator.java:27)
at net.minecraft.server.v1_4_R1.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:243)
at net.minecraft.server.v1_4_R1.Chunk.a(Chunk.java:797)
at org.bukkit.craftbukkit.v1_4_R1.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:61)
at org.bukkit.craftbukkit.v1_4_R1.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:13)
at org.bukkit.craftbukkit.v1_4_R1.util.AsynchronousExecutor$Task.finish(AsynchronousExecutor.java:179)
at org.bukkit.craftbukkit.v1_4_R1.util.AsynchronousExecutor.finishActive(AsynchronousExecutor.java:287)
at org.bukkit.craftbukkit.v1_4_R1.chunkio.ChunkIOExecutor.tick(ChunkIOExecutor.java:30)
at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:528)
at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:224)
at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:485)
at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:420)
at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
18:55:37 [SEVERE] This crash report has been saved to: S:\MinecraftServer\crash-reports\crash-2013-02-11_18.55.37-server.txt

Suggestion: Catch the exception and ignore it, and make a message telling you that the chunk generaton had an error. If it blocks the chunk from generating, then leave the chunk void

commented

If this was indeed a biome id problem, it should now be fixed. If not, feel free to leave a comment here and I'll reopen the issue.

commented

Oops, sorry for posting this 3 times, I thought it wasn't made correctly, but I think I can't see the issues on the list

commented

I believe this has got to do with biome ids larger than 127. TC 2.3 allow biome ids up to 127, TC 2.4 up to 254. If you try to use a 2.4 world in 2.3, or if you make a TC 2.3 world with biome ids larger than 127, you'll get this error.