From 316363d729a6b436fc5d22450369a2484889910a Mon Sep 17 00:00:00 2001 From: Vincent Lee Date: Fri, 18 Mar 2016 00:02:40 -0500 Subject: [PATCH] Remove redundant check on jaded amaranthus --- .../subtile/functional/SubTileJadedAmaranthus.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/main/java/vazkii/botania/common/block/subtile/functional/SubTileJadedAmaranthus.java b/src/main/java/vazkii/botania/common/block/subtile/functional/SubTileJadedAmaranthus.java index 0914372e0..5f8593def 100644 --- a/src/main/java/vazkii/botania/common/block/subtile/functional/SubTileJadedAmaranthus.java +++ b/src/main/java/vazkii/botania/common/block/subtile/functional/SubTileJadedAmaranthus.java @@ -46,13 +46,10 @@ public class SubTileJadedAmaranthus extends SubTileFunctional { Block blockAbove = supertile.getWorld().getBlockState(pos.up()).getBlock(); if((supertile.getWorld().isAirBlock(pos.up()) || blockAbove.isReplaceable(supertile.getWorld(), pos.up())) && blockAbove.getMaterial() != Material.water && ModBlocks.flower.canPlaceBlockAt(supertile.getWorld(), pos.up())) { EnumDyeColor color = EnumDyeColor.byMetadata(supertile.getWorld().rand.nextInt(16)); - if(ModBlocks.flower.canPlaceBlockAt(supertile.getWorld(), pos.up())) { - IBlockState state = ModBlocks.flower.getDefaultState().withProperty(BotaniaStateProps.COLOR, color); - if(ConfigHandler.blockBreakParticles) - supertile.getWorld().playAuxSFX(2001, pos.up(), Block.getStateId(state)); - supertile.getWorld().setBlockState(pos.up(), state, 1 | 2); - } - + IBlockState state = ModBlocks.flower.getDefaultState().withProperty(BotaniaStateProps.COLOR, color); + if(ConfigHandler.blockBreakParticles) + supertile.getWorld().playAuxSFX(2001, pos.up(), Block.getStateId(state)); + supertile.getWorld().setBlockState(pos.up(), state, 1 | 2); mana -= COST; sync();