Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.7.2] Dimension world generation problems


Recommended Posts

Hey!

 

Uhhh iv'e never had this problem before, but it started happening lately.

 

But my game keeps crashing when i try to load a new world and this is the crash report:

 

 

[14:27:41] [sound Library Loader/INFO]: Sound engine started
[14:27:44] [server thread/INFO]: Starting integrated minecraft server version 1.7.2
[14:27:44] [server thread/INFO]: Generating keypair
[14:27:44] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[14:27:44] [server thread/INFO] [FML]: Applying holder lookups
[14:27:44] [server thread/INFO] [FML]: Holder lookups applied
[14:27:46] [server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@592958fe)
[14:27:46] [server thread/INFO] [FML]: Loading dimension 10 (New World) (net.minecraft.server.integrated.IntegratedServer@592958fe)
[14:27:46] [server thread/WARN]: Unable to find spawn biome
[14:27:47] [server thread/ERROR]: Encountered an unexpected exception
net.minecraft.util.ReportedException: Exception getting block type in world
at net.minecraft.world.World.<init>(World.java:316) ~[World.class:?]
at net.minecraft.world.WorldServer.<init>(WorldServer.java:103) ~[WorldServer.class:?]
at net.minecraft.world.WorldServerMulti.<init>(WorldServerMulti.java:14) ~[WorldServerMulti.class:?]
at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:66) ~[integratedServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96) ~[integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:442) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:746) [MinecraftServer$2.class:?]
Caused by: java.lang.IllegalArgumentException: n must be positive
at java.util.Random.nextInt(Unknown Source) ~[?:1.7.0_51]
at net.divinerpg.api.worldgen.WorldGenAPI.placeModdedChestWithContents(WorldGenAPI.java:81) ~[WorldGenAPI.class:?]
at net.divinerpg.dimension.gen.iceika.village.WorldGenWorkShop.doMisc(WorldGenWorkShop.java:117) ~[WorldGenWorkShop.class:?]
at net.divinerpg.dimension.gen.iceika.village.WorldGenWorkShop.generate(WorldGenWorkShop.java:38) ~[WorldGenWorkShop.class:?]
at net.divinerpg.dimension.gen.iceika.ChunkProviderIceika.populate(ChunkProviderIceika.java:412) ~[ChunkProviderIceika.class:?]
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:255) ~[ChunkProviderServer.class:?]
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1158) ~[Chunk.class:?]
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150) ~[ChunkProviderServer.class:?]
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:163) ~[ChunkProviderServer.class:?]
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:487) ~[World.class:?]
at net.minecraft.world.World.getBlock(World.java:392) ~[World.class:?]
at net.minecraft.world.World.notifyBlockOfNeighborChange(World.java:767) ~[World.class:?]
at net.minecraft.world.World.notifyBlocksOfNeighborChange(World.java:724) ~[World.class:?]
at net.minecraft.world.World.notifyBlockChange(World.java:681) ~[World.class:?]
at net.minecraft.world.World.setBlock(World.java:531) ~[World.class:?]
at net.minecraft.world.World.setBlock(World.java:665) ~[World.class:?]
at net.divinerpg.dimension.gen.iceika.WorldGenIceikaDungeon.generate(WorldGenIceikaDungeon.java:66) ~[WorldGenIceikaDungeon.class:?]
at net.divinerpg.dimension.gen.iceika.ChunkProviderIceika.populate(ChunkProviderIceika.java:398) ~[ChunkProviderIceika.class:?]
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:255) ~[ChunkProviderServer.class:?]
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1163) ~[Chunk.class:?]
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150) ~[ChunkProviderServer.class:?]
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:163) ~[ChunkProviderServer.class:?]
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:487) ~[World.class:?]
at net.minecraft.world.World.getBlock(World.java:392) ~[World.class:?]
at net.minecraft.world.World.notifyBlockOfNeighborChange(World.java:767) ~[World.class:?]
at net.minecraft.world.World.notifyBlocksOfNeighborChange(World.java:720) ~[World.class:?]
at net.minecraft.world.World.notifyBlockChange(World.java:681) ~[World.class:?]
at net.minecraft.world.World.setBlock(World.java:531) ~[World.class:?]
at net.minecraft.world.World.setBlock(World.java:665) ~[World.class:?]
at net.divinerpg.dimension.gen.iceika.WorldGenIceikaDungeon1.generate(WorldGenIceikaDungeon1.java:762) ~[WorldGenIceikaDungeon1.class:?]
at net.divinerpg.dimension.gen.iceika.ChunkProviderIceika.populate(ChunkProviderIceika.java:398) ~[ChunkProviderIceika.class:?]
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:255) ~[ChunkProviderServer.class:?]
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1158) ~[Chunk.class:?]
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150) ~[ChunkProviderServer.class:?]
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:163) ~[ChunkProviderServer.class:?]
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:487) ~[World.class:?]
at net.minecraft.world.World.getBlock(World.java:392) ~[World.class:?]
at net.minecraft.world.World.notifyBlockOfNeighborChange(World.java:767) ~[World.class:?]
at net.minecraft.world.World.notifyBlocksOfNeighborChange(World.java:724) ~[World.class:?]
at net.minecraft.world.World.notifyBlockChange(World.java:681) ~[World.class:?]
at net.minecraft.world.World.setBlock(World.java:531) ~[World.class:?]
at net.minecraft.world.World.setBlock(World.java:665) ~[World.class:?]
at net.divinerpg.dimension.gen.iceika.WorldGenIceikaDungeon1.generate(WorldGenIceikaDungeon1.java:98) ~[WorldGenIceikaDungeon1.class:?]
at net.divinerpg.dimension.gen.iceika.ChunkProviderIceika.populate(ChunkProviderIceika.java:398) ~[ChunkProviderIceika.class:?]
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:255) ~[ChunkProviderServer.class:?]
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1153) ~[Chunk.class:?]
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150) ~[ChunkProviderServer.class:?]
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:163) ~[ChunkProviderServer.class:?]
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:487) ~[World.class:?]
at net.minecraft.world.World.getBlock(World.java:392) ~[World.class:?]
at net.minecraft.world.World.isAirBlock(World.java:415) ~[World.class:?]
at net.minecraft.world.World.getTopBlock(World.java:376) ~[World.class:?]
at net.minecraft.world.WorldProvider.canCoordinateBeSpawn(WorldProvider.java:97) ~[WorldProvider.class:?]
at net.minecraft.world.WorldServer.createSpawnPosition(WorldServer.java:806) ~[WorldServer.class:?]
at net.minecraft.world.WorldServer.initialize(WorldServer.java:770) ~[WorldServer.class:?]
at net.minecraft.world.World.<init>(World.java:301) ~[World.class:?]
... 6 more
[14:27:47] [server thread/ERROR]: This crash report has been saved to: C:\Development\Forge 1.7.2\eclipse\.\crash-reports\crash-2014-06-08_14.27.47-server.txt
[14:27:47] [server thread/INFO] [FML]: Applying holder lookups
[14:27:47] [server thread/INFO] [FML]: Holder lookups applied
[14:27:47] [server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STARTING and forced into state SERVER_STOPPED. Errors may have been discarded.
---- Minecraft Crash Report ----
// I just don't know what went wrong 

Time: 8/06/14 2:27 PM
Description: Exception getting block type in world

java.lang.IllegalArgumentException: n must be positive
at java.util.Random.nextInt(Unknown Source)
at net.divinerpg.api.worldgen.WorldGenAPI.placeModdedChestWithContents(WorldGenAPI.java:81)
at net.divinerpg.dimension.gen.iceika.village.WorldGenWorkShop.doMisc(WorldGenWorkShop.java:117)
at net.divinerpg.dimension.gen.iceika.village.WorldGenWorkShop.generate(WorldGenWorkShop.java:38)
at net.divinerpg.dimension.gen.iceika.ChunkProviderIceika.populate(ChunkProviderIceika.java:412)
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:255)
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1158)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150)
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:163)
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:487)
at net.minecraft.world.World.getBlock(World.java:392)
at net.minecraft.world.World.notifyBlockOfNeighborChange(World.java:767)
at net.minecraft.world.World.notifyBlocksOfNeighborChange(World.java:724)
at net.minecraft.world.World.notifyBlockChange(World.java:681)
at net.minecraft.world.World.setBlock(World.java:531)
at net.minecraft.world.World.setBlock(World.java:665)
at net.divinerpg.dimension.gen.iceika.WorldGenIceikaDungeon.generate(WorldGenIceikaDungeon.java:66)
at net.divinerpg.dimension.gen.iceika.ChunkProviderIceika.populate(ChunkProviderIceika.java:398)
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:255)
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1163)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150)
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:163)
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:487)
at net.minecraft.world.World.getBlock(World.java:392)
at net.minecraft.world.World.notifyBlockOfNeighborChange(World.java:767)
at net.minecraft.world.World.notifyBlocksOfNeighborChange(World.java:720)
at net.minecraft.world.World.notifyBlockChange(World.java:681)
at net.minecraft.world.World.setBlock(World.java:531)
at net.minecraft.world.World.setBlock(World.java:665)
at net.divinerpg.dimension.gen.iceika.WorldGenIceikaDungeon1.generate(WorldGenIceikaDungeon1.java:762)
at net.divinerpg.dimension.gen.iceika.ChunkProviderIceika.populate(ChunkProviderIceika.java:398)
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:255)
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1158)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150)
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:163)
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:487)
at net.minecraft.world.World.getBlock(World.java:392)
at net.minecraft.world.World.notifyBlockOfNeighborChange(World.java:767)
at net.minecraft.world.World.notifyBlocksOfNeighborChange(World.java:724)
at net.minecraft.world.World.notifyBlockChange(World.java:681)
at net.minecraft.world.World.setBlock(World.java:531)
at net.minecraft.world.World.setBlock(World.java:665)
at net.divinerpg.dimension.gen.iceika.WorldGenIceikaDungeon1.generate(WorldGenIceikaDungeon1.java:98)
at net.divinerpg.dimension.gen.iceika.ChunkProviderIceika.populate(ChunkProviderIceika.java:398)
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:255)
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1153)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150)
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:163)
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:487)
at net.minecraft.world.World.getBlock(World.java:392)
at net.minecraft.world.World.isAirBlock(World.java:415)
at net.minecraft.world.World.getTopBlock(World.java:376)
at net.minecraft.world.WorldProvider.canCoordinateBeSpawn(WorldProvider.java:97)
at net.minecraft.world.WorldServer.createSpawnPosition(WorldServer.java:806)
at net.minecraft.world.WorldServer.initialize(WorldServer.java:770)
at net.minecraft.world.World.<init>(World.java:301)
at net.minecraft.world.WorldServer.<init>(WorldServer.java:103)
at net.minecraft.world.WorldServerMulti.<init>(WorldServerMulti.java:14)
at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:66)
at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:442)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:746)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at java.util.Random.nextInt(Unknown Source)
at net.divinerpg.api.worldgen.WorldGenAPI.placeModdedChestWithContents(WorldGenAPI.java:81)
at net.divinerpg.dimension.gen.iceika.village.WorldGenWorkShop.doMisc(WorldGenWorkShop.java:117)
at net.divinerpg.dimension.gen.iceika.village.WorldGenWorkShop.generate(WorldGenWorkShop.java:38)
at net.divinerpg.dimension.gen.iceika.ChunkProviderIceika.populate(ChunkProviderIceika.java:412)
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:255)
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1158)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150)
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:163)
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:487)

-- Requested block coordinates --
Details:
Found chunk: true
Location: World: (-16,45,32), Chunk: (at 0,2,0 in -1,2; contains blocks -16,0,32 to -1,255,47), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Stacktrace:
at net.minecraft.world.World.getBlock(World.java:392)
at net.minecraft.world.World.notifyBlockOfNeighborChange(World.java:767)
at net.minecraft.world.World.notifyBlocksOfNeighborChange(World.java:724)
at net.minecraft.world.World.notifyBlockChange(World.java:681)
at net.minecraft.world.World.setBlock(World.java:531)
at net.minecraft.world.World.setBlock(World.java:665)
at net.divinerpg.dimension.gen.iceika.WorldGenIceikaDungeon.generate(WorldGenIceikaDungeon.java:66)
at net.divinerpg.dimension.gen.iceika.ChunkProviderIceika.populate(ChunkProviderIceika.java:398)
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:255)
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1163)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150)
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:163)
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:487)

-- Requested block coordinates --
Details:
Found chunk: true
Location: World: (0,14,16), Chunk: (at 0,0,0 in 0,1; contains blocks 0,0,16 to 15,255,31), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Stacktrace:
at net.minecraft.world.World.getBlock(World.java:392)
at net.minecraft.world.World.notifyBlockOfNeighborChange(World.java:767)
at net.minecraft.world.World.notifyBlocksOfNeighborChange(World.java:720)
at net.minecraft.world.World.notifyBlockChange(World.java:681)
at net.minecraft.world.World.setBlock(World.java:531)
at net.minecraft.world.World.setBlock(World.java:665)
at net.divinerpg.dimension.gen.iceika.WorldGenIceikaDungeon1.generate(WorldGenIceikaDungeon1.java:762)
at net.divinerpg.dimension.gen.iceika.ChunkProviderIceika.populate(ChunkProviderIceika.java:398)
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:255)
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1158)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150)
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:163)
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:487)

-- Requested block coordinates --
Details:
Found chunk: true
Location: World: (-4,12,0), Chunk: (at 12,0,0 in -1,0; contains blocks -16,0,0 to -1,255,15), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Stacktrace:
at net.minecraft.world.World.getBlock(World.java:392)
at net.minecraft.world.World.notifyBlockOfNeighborChange(World.java:767)
at net.minecraft.world.World.notifyBlocksOfNeighborChange(World.java:724)
at net.minecraft.world.World.notifyBlockChange(World.java:681)
at net.minecraft.world.World.setBlock(World.java:531)
at net.minecraft.world.World.setBlock(World.java:665)
at net.divinerpg.dimension.gen.iceika.WorldGenIceikaDungeon1.generate(WorldGenIceikaDungeon1.java:98)
at net.divinerpg.dimension.gen.iceika.ChunkProviderIceika.populate(ChunkProviderIceika.java:398)
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:255)
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1153)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:150)
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:163)
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:487)

-- Requested block coordinates --
Details:
Found chunk: true
Location: World: (3,64,-26), Chunk: (at 3,4,6 in 0,-2; contains blocks 0,0,-32 to 15,255,-17), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
Stacktrace:
at net.minecraft.world.World.getBlock(World.java:392)
at net.minecraft.world.World.isAirBlock(World.java:415)
at net.minecraft.world.World.getTopBlock(World.java:376)
at net.minecraft.world.WorldProvider.canCoordinateBeSpawn(WorldProvider.java:97)
at net.minecraft.world.WorldServer.createSpawnPosition(WorldServer.java:806)
at net.minecraft.world.WorldServer.initialize(WorldServer.java:770)

-- Affected level --
Details:
Level name: New World
All players: 0 total; []
Chunk stats: ServerChunkCache: 19 Drop: 0
Level seed: 8496982105151354415
Level generator: ID 01 - flat, ver 0. Features enabled: true
Level generator options: 
Level spawn location: World: (0,0,0), Chunk: (at 0,0,0 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 0 game time, 0 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.world.World.<init>(World.java:301)
at net.minecraft.world.WorldServer.<init>(WorldServer.java:103)
at net.minecraft.world.WorldServerMulti.<init>(WorldServerMulti.java:14)
at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:66)
at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:442)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:746)

-- System Details --
Details:
Minecraft Version: 1.7.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_51, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 3947769296 bytes (3764 MB) / 4149739520 bytes (3957 MB) up to 4149739520 bytes (3957 MB)
JVM Flags: 3 total; -Xincgc -Xmx4024M -Xms4024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.03 FML v7.2.207.1110 Minecraft Forge 10.12.1.1110 4 mods loaded, 4 mods active
mcp{9.03} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
FML{7.2.207.1110} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.1.1110.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
Forge{10.12.1.1110} [Minecraft Forge] (forgeSrc-1.7.2-10.12.1.1110.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
divinerpg{InDev 1.4.0} [DivineRPG] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Player Count: 0 / 8; []
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'
#@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2014-06-08_14.27.47-server.txt
AL lib: (EE) alc_cleanup: 1 device not closed

 

 

 

and this is the code thats causing it:

 

 


private ArrayList<WorldGenerator> lights, village, dungeons;

   

 

In the constructor:

lights = new ArrayList(2);
	lights.add(new WorldGenLights.Light1());
	lights.add(new WorldGenLights.Light2());
	lights.add(new WorldGenLights.Light3());

	village = new ArrayList(2);
	village.add(new WorldGenLibrary());
	village.add(new WorldGenWorkShop());
	village.add(new WorldGenHouse1());

	dungeons = new ArrayList(1);
	dungeons.add(new WorldGenIceikaDungeon());
	dungeons.add(new WorldGenIceikaDungeon1());

 

In the populate method:

                for(i = 0; i < 5; i++) { 
		x = var4 + this.rand.nextInt(16);
		z = var5 + this.rand.nextInt(16);
		y = rand.nextInt(50);
		(dungeons.get(rand.nextInt(dungeons.size()))).generate(this.worldObj, this.rand, x, y, z);
	}

	for(i = 0; i < 6; i++) {
		x = var4 + this.rand.nextInt(16);
		z = var5 + this.rand.nextInt(16);
		y = rand.nextInt(200);
		(lights.get(rand.nextInt(lights.size()))).generate(this.worldObj, this.rand, x, y, z);
	}

	for(i = 0; i < 5; i++) {
		x = var4 + this.rand.nextInt(16);
		z = var5 + this.rand.nextInt(16);
		y = rand.nextInt(200);
		(village.get(rand.nextInt(village.size()))).generate(this.worldObj, this.rand, x, y, z);
	}

 

 

 

I know the problem would be inside the generation files itself.

 

But here is the dungeon file(I know its messy, but this is basically the only componant left to clean and rewrite) HERE it is with the rest of the code for anything else you would need

 

Oh and something else to be noted, if I comment out the parts that say i crash with that line, it doest crash, it just doesn't let me into any world... *Sighhh*

 

Any help would be great :D

I can also put the generation code of any file into the onItemUse method in an item, and it generates fine without any problems

Former developer for DivineRPG, Pixelmon and now the maker of Essence of the Gods

Link to post
Share on other sites

Not sure if this has anything to do with it, but are you defining a spawn biome? Because just before the crash the console says "[14:27:46] [server thread/WARN]: Unable to find spawn biome" Again, this may be totally unrealated, but just checking :)

Link to post
Share on other sites

in WorldGenAPI

ItemStack it = is[r.nextInt(amountOfItems - 1) + 1];

 

But your giving it only 1 for amountOfItems in WorldGenWorkShop

WorldGenAPI.placeModdedChestWithContents(w, x + x1 + 7, y + 1, z + z1 + 5, 2, 1, IceikaBlocks.frostedChest, i);

 

End result, r.nextInt(0) which is returning -1 sometimes and crashing things.

 

I'd fix placeChestWithContents and placeModdedChestWithContents, you've got multiple problems, for instance nowhere does it set the size of the itemStack placed in the chest inventory.

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.