diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/misc/apiimpl/farmer/DefaultFarmerBehavior.java b/src/main/java/de/ellpeck/actuallyadditions/mod/misc/apiimpl/farmer/DefaultFarmerBehavior.java index c07857a9f..620366152 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/misc/apiimpl/farmer/DefaultFarmerBehavior.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/misc/apiimpl/farmer/DefaultFarmerBehavior.java @@ -71,13 +71,9 @@ public class DefaultFarmerBehavior implements IFarmerBehavior{ } private static boolean tryPlant(IBlockState toPlant, World world, BlockPos pos){ - BlockBush plantBlock = (BlockBush)toPlant.getBlock(); - if(plantBlock.canPlaceBlockAt(world, pos) && plantBlock.canBlockStay(world, pos, toPlant)){ - //This fixes a bug with Beetroot being able to be planted anywhere because Minecraft sucks - if(plantBlock != Blocks.BEETROOTS || Blocks.WHEAT.canPlaceBlockAt(world, pos)){ - world.setBlockState(pos, toPlant, 3); - return true; - } + if(toPlant.getBlock().canPlaceBlockAt(world, pos)){ + world.setBlockState(pos, toPlant); + return true; } return false; }