From bf40504ddf1a11af3e0671de62fc6b8d27ce0040 Mon Sep 17 00:00:00 2001 From: marcin212 Date: Wed, 14 Jun 2017 15:19:27 +0200 Subject: [PATCH] Fixed spawn fruit block --- src/main/java/binnie/extratrees/gen/WorldGenTree.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/binnie/extratrees/gen/WorldGenTree.java b/src/main/java/binnie/extratrees/gen/WorldGenTree.java index 46ec4be9..8a9d40b2 100644 --- a/src/main/java/binnie/extratrees/gen/WorldGenTree.java +++ b/src/main/java/binnie/extratrees/gen/WorldGenTree.java @@ -169,10 +169,10 @@ public class WorldGenTree extends WorldGenerator { for (int x2 = 0; x2 < this.girth; ++x2) { for (int z = 0; z < this.girth; ++z) { if (x2 <= 0 || x2 >= this.girth || z <= 0 || z >= this.girth) { - //this.treeGen.trySpawnFruitBlock(this.world, this.startX + x2 + 1, this.startY + y2, this.startZ + z); - //this.treeGen.trySpawnFruitBlock(this.world, this.startX + x2 - 1, this.startY + y2, this.startZ + z); - //this.treeGen.trySpawnFruitBlock(this.world, this.startX + x2, this.startY + y2, this.startZ + z + 1); - //this.treeGen.trySpawnFruitBlock(this.world, this.startX + x2, this.startY + y2, this.startZ + z - 1); + treeGen.trySpawnFruitBlock(world, world.rand, new BlockPos(startX + x2 + 1, startY + y2, startZ + z)); + treeGen.trySpawnFruitBlock(world, world.rand, new BlockPos(startX + x2 - 1, startY + y2, startZ + z)); + treeGen.trySpawnFruitBlock(world, world.rand, new BlockPos(startX + x2, startY + y2, startZ + z + 1)); + treeGen.trySpawnFruitBlock(world, world.rand, new BlockPos(startX + x2, startY + y2, startZ + z - 1)); } } }