Skip to content

Commit

Permalink
Remove reference to TorchFlower.
Browse files Browse the repository at this point in the history
  • Loading branch information
Crystal-Spider committed Jun 26, 2024
1 parent ea8b1df commit 9a6980b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import net.minecraft.world.level.block.CocoaBlock;
import net.minecraft.world.level.block.CropBlock;
import net.minecraft.world.level.block.NetherWartBlock;
import net.minecraft.world.level.block.TorchflowerCropBlock;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.properties.IntegerProperty;

Expand All @@ -40,7 +39,7 @@ private HarvestUtils() {}
* @return whether the given block is a valid breakable crop.
*/
public static boolean isCrop(Block block) {
return !(block instanceof TorchflowerCropBlock) && (block instanceof CropBlock || block instanceof NetherWartBlock || block instanceof CocoaBlock || ModConfig.getCrops().contains(BlockUtils.getStringKey(block)));
return block instanceof CropBlock || block instanceof NetherWartBlock || block instanceof CocoaBlock || ModConfig.getCrops().contains(BlockUtils.getStringKey(block));
}

/**
Expand Down

0 comments on commit 9a6980b

Please sign in to comment.