mojira.dev
MC-311715

Sweet berry bushes always use the full block shape for slowing down entities

The visual size and outline of sweet berry bushes differ in size depending on their age, but they always use the full block shape to determine when an entity should be slowed. Due to this all sweet berry bushes have essentially the same size as cobwebs even though the small variants are considerably smaller.


This can be fixed very easily by making the SweetBerryBushBlock class overwrite the BlockBehaviour::getEntityInsideCollisionShape method. Simply adding

@Override
protected VoxelShape getEntityInsideCollisionShape(final BlockState state, final BlockGetter level, final BlockPos pos, final Entity entity) {
    return this.getShape(state, level, pos, CollisionContext.empty());
}

to the SweetBerryBushBlock class should do the trick.

Attachments

Comments 1

Thank you for helping us improve Minecraft! We saved your files:

[media]

Z0rty

(Unassigned)

Confirmed

26.2, 26.3 Pre-Release 2

Retrieved