mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Fixed the Jaded Amarathus not being inclusive of other mods' soil blocks. Closes #659
This commit is contained in:
1 parent
0e0e4253cb
commit
5124e3c971
1 file changed
+1
-2
+1
-2
@@ -37,9 +37,8 @@ public class SubTileJadedAmaranthus extends SubTileFunctional {
|
||||
int z = supertile.zCoord - range + supertile.getWorldObj().rand.nextInt(range * 2 + 1);
|
||||
|
||||
for(int i = 0; i < range * 2; i++) {
|
||||
Block block = supertile.getWorldObj().getBlock(x, y, z);
|
||||
Block blockAbove = supertile.getWorldObj().getBlock(x, y + 1, z);
|
||||
if((block == Blocks.grass || block == Blocks.dirt || block == Blocks.farmland) && (supertile.getWorldObj().isAirBlock(x, y + 1, z) || blockAbove.isReplaceable(supertile.getWorldObj(), x, y + 1, z) && blockAbove.getMaterial() != Material.water)) {
|
||||
if((supertile.getWorldObj().isAirBlock(x, y + 1, z) || blockAbove.isReplaceable(supertile.getWorldObj(), x, y + 1, z)) && blockAbove.getMaterial() != Material.water && ModBlocks.flower.canPlaceBlockAt(supertile.getWorldObj(), x, y + 1, z)) {
|
||||
int color = supertile.getWorldObj().rand.nextInt(16);
|
||||
if(ModBlocks.flower.canBlockStay(supertile.getWorldObj(), x, y + 1, z)) {
|
||||
if(ConfigHandler.blockBreakParticles)
|
||||
|
||||
Reference in new issue
Block a user