|
21 | 21 |
|
22 | 22 | import gregapi.block.multitileentity.MultiTileEntityRegistry; |
23 | 23 | import gregapi.code.ItemStackContainer; |
24 | | -import gregapi.data.IL; |
| 24 | +import gregapi.data.MD; |
25 | 25 | import gregapi.util.ST; |
26 | 26 | import gregapi.util.UT; |
27 | 27 | import gregapi.util.WD; |
28 | 28 | import gregapi.worldgen.WorldgenObject; |
29 | 29 | import gregapi.worldgen.WorldgenOnSurface; |
30 | 30 | import net.minecraft.block.Block; |
31 | 31 | import net.minecraft.init.Blocks; |
| 32 | +import net.minecraft.init.Items; |
32 | 33 | import net.minecraft.item.ItemStack; |
33 | 34 | import net.minecraft.world.World; |
34 | 35 | import net.minecraft.world.biome.BiomeGenBase; |
@@ -62,7 +63,10 @@ public boolean tryPlaceStuff(World aWorld, int aX, int aY, int aZ, Random aRando |
62 | 63 | MultiTileEntityRegistry tRegistry = MultiTileEntityRegistry.getRegistry("gt.multitileentity"); |
63 | 64 | if (tRegistry == null) return F; |
64 | 65 |
|
65 | | - ItemStack tBerry = UT.Code.select(new NoiseGenerator(aWorld).get(aX/2, 300, aZ/2, BushesGT.MAP.size()), new ItemStackContainer(IL.Food_Candleberry.get(1)), BushesGT.MAP.keySet().toArray(ZL_ISC)).toStack(); |
| 66 | + ItemStack tBerry = UT.Code.select(new NoiseGenerator(aWorld).get(aX/2, 300, aZ/2, BushesGT.MAP.size()), new ItemStackContainer(Items.string, 1, 0), BushesGT.MAP.keySet().toArray(ZL_ISC)).toStack(); |
| 67 | + |
| 68 | + // Change Minecraft String to Harvestcraft Cotton, because it's in the static initializer as a default. |
| 69 | + if (MD.HaC.mLoaded && ST.item(tBerry) == Items.string) tBerry = ST.make(MD.HaC, "cottonItem", 1, 0, tBerry); |
66 | 70 |
|
67 | 71 | if (placeBushCore(aWorld, aX, aY, aZ, tRegistry, tBerry, 3)) { |
68 | 72 | if (aRandom.nextBoolean() && placeBushCore(aWorld, aX-1, aY, aZ , tRegistry, tBerry, 3)) placeBushSides(aWorld, aX-1, aY, aZ , tRegistry, tBerry, 3); |
|
0 commit comments