Skip to content

Commit

Permalink
Fix TorchFlower interaction.
Browse files Browse the repository at this point in the history
  • Loading branch information
Crystal-Spider committed Jun 26, 2024
1 parent 03c79f9 commit bd7f76e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import net.minecraft.world.level.block.CropBlock;
import net.minecraft.world.level.block.NetherWartBlock;
import net.minecraft.world.level.block.PitcherCropBlock;
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 +41,7 @@ private HarvestUtils() {}
* @return whether the given block is a valid breakable crop.
*/
public static boolean isCrop(Block block) {
return block instanceof CropBlock || block instanceof NetherWartBlock || block instanceof CocoaBlock || block instanceof PitcherCropBlock || ModConfig.getCrops().contains(BlockUtils.getStringKey(block));
return !(block instanceof TorchflowerCropBlock) && (block instanceof CropBlock || block instanceof NetherWartBlock || block instanceof CocoaBlock || block instanceof PitcherCropBlock || ModConfig.getCrops().contains(BlockUtils.getStringKey(block)));
}

/**
Expand Down

0 comments on commit bd7f76e

Please sign in to comment.