|  | 
| 1 | 1 | package binnie.extratrees.gen; | 
| 2 | 2 | 
 | 
| 3 |  | -import binnie.extratrees.worldgen.BlockType; | 
| 4 |  | -import binnie.extratrees.worldgen.BlockTypeLeaf; | 
| 5 |  | -import binnie.extratrees.worldgen.BlockTypeLog; | 
| 6 |  | -import binnie.extratrees.worldgen.BlockTypeVoid; | 
| 7 |  | -import binnie.extratrees.worldgen.WorldGenBlockType; | 
| 8 |  | -import com.mojang.authlib.GameProfile; | 
| 9 |  | -import forestry.api.world.ITreeGenData; | 
| 10 |  | -import forestry.arboriculture.tiles.TileTreeContainer; | 
| 11 |  | -import forestry.arboriculture.worldgen.WorldGenTree; | 
| 12 |  | -import forestry.core.tiles.TileUtil; | 
|  | 3 | +import javax.annotation.Nullable; | 
|  | 4 | +import java.util.Random; | 
|  | 5 | + | 
| 13 | 6 | import net.minecraft.init.Blocks; | 
| 14 | 7 | import net.minecraft.util.EnumFacing; | 
| 15 | 8 | import net.minecraft.util.math.BlockPos; | 
| 16 | 9 | import net.minecraft.world.World; | 
|  | 10 | + | 
|  | 11 | +import com.mojang.authlib.GameProfile; | 
|  | 12 | + | 
| 17 | 13 | import net.minecraftforge.event.terraingen.TerrainGen; | 
| 18 | 14 | 
 | 
| 19 |  | -import javax.annotation.Nullable; | 
| 20 |  | -import java.util.Random; | 
|  | 15 | +import forestry.api.world.ITreeGenData; | 
|  | 16 | +import forestry.arboriculture.tiles.TileTreeContainer; | 
|  | 17 | +import forestry.arboriculture.worldgen.WorldGenTree; | 
|  | 18 | +import forestry.core.tiles.TileUtil; | 
|  | 19 | + | 
|  | 20 | +import binnie.extratrees.worldgen.BlockType; | 
|  | 21 | +import binnie.extratrees.worldgen.BlockTypeLeaf; | 
|  | 22 | +import binnie.extratrees.worldgen.BlockTypeLog; | 
|  | 23 | +import binnie.extratrees.worldgen.BlockTypeVoid; | 
|  | 24 | +import binnie.extratrees.worldgen.WorldGenBlockType; | 
| 21 | 25 | 
 | 
| 22 | 26 | public class BinnieWorldGenTree extends WorldGenTree { | 
| 23 | 27 | 	protected final ITreeGenData treeGen; | 
| @@ -112,7 +116,7 @@ public final boolean generate(World world, Random random, BlockPos pos, boolean | 
| 112 | 116 | 		this.pos = genPos; | 
| 113 | 117 | 		this.preGenerate(world, random, this.pos); | 
| 114 | 118 | 
 | 
| 115 |  | -		if (!force && !this.canGrow()) { | 
|  | 119 | +		if (!force && !this.canGrow() || genPos == null) { | 
| 116 | 120 | 			return false; | 
| 117 | 121 | 		} | 
| 118 | 122 | 		generateTrunk(); | 
|  | 
0 commit comments