Skip to content

Commit

Permalink
check if is valid bonemeal target
Browse files Browse the repository at this point in the history
  • Loading branch information
rqy2002 committed Aug 27, 2023
1 parent 986b8c0 commit 48a7848
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private boolean isPlant(BlockPos pos) {

ResourceLocation id = BuiltInRegistries.BLOCK.getKey(block);
if (BotaniaConfig.common().agricarnationWhitelist().contains(id.toString()))
return true;
return !(block instanceof BonemealableBlock mealable) || mealable.isValidBonemealTarget(getLevel(), pos, state, getLevel().isClientSide);

// Spreads when ticked
if (block instanceof SpreadingSnowyDirtBlock) {
Expand Down

0 comments on commit 48a7848

Please sign in to comment.