Skip to content

Commit

Permalink
pass style check
Browse files Browse the repository at this point in the history
  • Loading branch information
rqy2002 committed Aug 29, 2023
1 parent 48a7848 commit 2f136fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ private boolean isPlant(BlockPos pos) {
Block block = state.getBlock();

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

// Spreads when ticked
if (block instanceof SpreadingSnowyDirtBlock) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,7 @@ public List<String> rannuncarpusModBlacklist() {
}

@Override
public List<String> agricarnationWhitelist() { return inner.agricarnationWhitelist(); }
public List<String> agricarnationWhitelist() {
return inner.agricarnationWhitelist();
}
}

0 comments on commit 2f136fd

Please sign in to comment.