Fruit Trees ๐ŸŠ

Fruit Trees ๐ŸŠ

4M Downloads

Request for adding `FruitsConfig.fruitDrops` check

stfwi opened this issue ยท 5 comments

commented

Hi snowee, can you add the FruitsConfig.fruitDrops config check in FruitLeavesBlock.grow()? It's not worth making a pull request for that, so I pasted the method code proposal below ;-).
The change is based on commit #faf3f20 / 1.2.4.
Cheers, wile -

    @Override
    public void grow(ServerWorld world, Random rand, BlockPos pos, BlockState state) {
        if (state.get(AGE) == 3) {
            if (FruitsConfig.fruitDrops) {
                world.setBlockState(pos, onPassiveGathered(world, pos, state));
                spawnAsEntity(world, pos, new ItemStack(type.get().fruit));
            }
        } else {
            world.setBlockState(pos, state.cycle(AGE));
        }
    }
commented

Wow, that was fast, thanks for the quick response and rebuild!

commented

Quickly double checked, works perfectly:
2020-04-05_18 52 26
Cheers, -

commented

OK. have fun

commented

Thanks for letting me know that!