Skip to content

Commit

Permalink
fix: Some glass breaking when in flowing water
Browse files Browse the repository at this point in the history
Backport 490d6f6
  • Loading branch information
Rover656 committed May 18, 2024
1 parent 92c7622 commit d4eaf48
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public float getExplosionResistance() {

@Override
public VoxelShape getCollisionShape(BlockState pState, BlockGetter pLevel, BlockPos pPos, CollisionContext pContext) {
if (pContext instanceof EntityCollisionContext entityCollisionContext) {
if (pContext instanceof EntityCollisionContext entityCollisionContext && entityCollisionContext != CollisionContext.empty()) {
if (collisionPredicate.canPass(entityCollisionContext)) {
return Shapes.empty();
}
Expand Down

0 comments on commit d4eaf48

Please sign in to comment.