Request for adding `FruitsConfig.fruitDrops` check
stfwi opened this issue ยท 5 comments
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));
}
}