Skip to content

Commit

Permalink
Change CustomGrowsDownPlantBlock$WithFruits
Browse files Browse the repository at this point in the history
  • Loading branch information
FirstMegaGame4 committed Mar 24, 2024
1 parent 6c68d54 commit 4945323
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,13 @@ public interface WithFruits {

BooleanProperty getFruitsProperty();

Item getFruitItem();
Item getFruitItem(BlockState state, World world, BlockPos pos);

int getPickingCount();
int getPickingCount(BlockState state, World world, BlockPos pos);

default ActionResult pickBerries(BlockState state, World world, BlockPos pos) {
if (state.get(this.getFruitsProperty())) {
Block.dropStack(world, pos, new ItemStack(this.getFruitItem(), this.getPickingCount()));
Block.dropStack(world, pos, new ItemStack(this.getFruitItem(state, world, pos), this.getPickingCount(state, world, pos)));
world.playSound(
null,
pos,
Expand Down

0 comments on commit 4945323

Please sign in to comment.