From b639694ad5c831b183fd6d27acbdcf141ae6116e Mon Sep 17 00:00:00 2001 From: Adubbz Date: Sun, 26 May 2013 17:17:11 +1000 Subject: [PATCH] Fixed the Nether Bushes and Nether Grass Generation from causing crashes --- .../worldgen/WorldGenNetherBush.java | 10 +++++----- .../worldgen/WorldGenNetherGrass.java | 20 +++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/minecraft/biomesoplenty/worldgen/WorldGenNetherBush.java b/src/minecraft/biomesoplenty/worldgen/WorldGenNetherBush.java index 448d07fc1..a006242b1 100644 --- a/src/minecraft/biomesoplenty/worldgen/WorldGenNetherBush.java +++ b/src/minecraft/biomesoplenty/worldgen/WorldGenNetherBush.java @@ -41,11 +41,11 @@ public class WorldGenNetherBush extends WorldGenerator var1.setBlock(var3, var4, var5, Block.netherrack.blockID); this.setBlockAndMetadata(var1, var3, var4 + 1, var5, Blocks.logs4.get().blockID, 1); this.setBlockAndMetadata(var1, var3, var4 + 2, var5, Blocks.logs4.get().blockID, 1); - this.setBlockAndMetadata(var1, var3 + 1, var4 + 2, var5, Blocks.leavesColorized.get().blockID, 6); - this.setBlockAndMetadata(var1, var3 - 1, var4 + 2, var5, Blocks.leavesColorized.get().blockID, 6); - this.setBlockAndMetadata(var1, var3, var4 + 2, var5 + 1, Blocks.leavesColorized.get().blockID, 6); - this.setBlockAndMetadata(var1, var3, var4 + 2, var5 - 1, Blocks.leavesColorized.get().blockID, 6); - this.setBlockAndMetadata(var1, var3, var4 + 3, var5, Blocks.leavesColorized.get().blockID, 6); + this.setBlockAndMetadata(var1, var3 + 1, var4 + 2, var5, Blocks.leaves2.get().blockID, 4); + this.setBlockAndMetadata(var1, var3 - 1, var4 + 2, var5, Blocks.leaves2.get().blockID, 4); + this.setBlockAndMetadata(var1, var3, var4 + 2, var5 + 1, Blocks.leaves2.get().blockID, 4); + this.setBlockAndMetadata(var1, var3, var4 + 2, var5 - 1, Blocks.leaves2.get().blockID, 4); + this.setBlockAndMetadata(var1, var3, var4 + 3, var5, Blocks.leaves2.get().blockID, 4); return true; } } diff --git a/src/minecraft/biomesoplenty/worldgen/WorldGenNetherGrass.java b/src/minecraft/biomesoplenty/worldgen/WorldGenNetherGrass.java index c0312e8dc..ce66c484f 100644 --- a/src/minecraft/biomesoplenty/worldgen/WorldGenNetherGrass.java +++ b/src/minecraft/biomesoplenty/worldgen/WorldGenNetherGrass.java @@ -65,23 +65,23 @@ public class WorldGenNetherGrass extends WorldGenerator } if (par1World.isAirBlock(var8 + 1, var9 + 1, var10)) { - par1World.setBlock(var8 + 1, var9 + 1, var10, Blocks.leavesColorized.get().blockID, 6, 2); + par1World.setBlock(var8 + 1, var9 + 1, var10, Blocks.leaves2.get().blockID, 4, 2); } if (par1World.isAirBlock(var8 - 1, var9 + 1, var10)) { - par1World.setBlock(var8 - 1, var9 + 1, var10, Blocks.leavesColorized.get().blockID, 6, 2); + par1World.setBlock(var8 - 1, var9 + 1, var10, Blocks.leaves2.get().blockID, 4, 2); } if (par1World.isAirBlock(var8, var9 + 1, var10 + 1)) { - par1World.setBlock(var8, var9 + 1, var10 + 1, Blocks.leavesColorized.get().blockID, 6, 2); + par1World.setBlock(var8, var9 + 1, var10 + 1, Blocks.leaves2.get().blockID, 4, 2); } if (par1World.isAirBlock(var8, var9 + 1, var10 - 1)) { - par1World.setBlock(var8, var9 + 1, var10 - 1, Blocks.leavesColorized.get().blockID, 6, 2); + par1World.setBlock(var8, var9 + 1, var10 - 1, Blocks.leaves2.get().blockID, 4, 2); } if (par1World.isAirBlock(var8, var9 + 2, var10)) { - par1World.setBlock(var8, var9 + 2, var10, Blocks.leavesColorized.get().blockID, 6, 2); + par1World.setBlock(var8, var9 + 2, var10, Blocks.leaves2.get().blockID, 4, 2); } } @@ -94,23 +94,23 @@ public class WorldGenNetherGrass extends WorldGenerator } if (par1World.isAirBlock(var8 + 1, var9 + 1, var10)) { - par1World.setBlock(var8 + 1, var9 + 1, var10, Blocks.leavesColorized.get().blockID, 6, 2); + par1World.setBlock(var8 + 1, var9 + 1, var10, Blocks.leaves2.get().blockID, 4, 2); } if (par1World.isAirBlock(var8 - 1, var9 + 1, var10)) { - par1World.setBlock(var8 - 1, var9 + 1, var10, Blocks.leavesColorized.get().blockID, 6, 2); + par1World.setBlock(var8 - 1, var9 + 1, var10, Blocks.leaves2.get().blockID, 4, 2); } if (par1World.isAirBlock(var8, var9 + 1, var10 + 1)) { - par1World.setBlock(var8, var9 + 1, var10 + 1, Blocks.leavesColorized.get().blockID, 6, 2); + par1World.setBlock(var8, var9 + 1, var10 + 1, Blocks.leaves2.get().blockID, 4, 2); } if (par1World.isAirBlock(var8, var9 + 1, var10 - 1)) { - par1World.setBlock(var8, var9 + 1, var10 - 1, Blocks.leavesColorized.get().blockID, 6, 2); + par1World.setBlock(var8, var9 + 1, var10 - 1, Blocks.leaves2.get().blockID, 4, 2); } if (par1World.isAirBlock(var8, var9 + 2, var10)) { - par1World.setBlock(var8, var9 + 2, var10, Blocks.leavesColorized.get().blockID, 6, 2); + par1World.setBlock(var8, var9 + 2, var10, Blocks.leaves2.get().blockID, 4, 2); } } }