Skip to content

Commit

Permalink
Fixed snow not producing footsteps #283
Browse files Browse the repository at this point in the history
  • Loading branch information
Sollace committed Mar 11, 2024
1 parent b8aa61a commit add0528
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/eu/ha3/presencefootsteps/world/PFSolver.java
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ private Association findAssociation(AssociationPool associations, LivingEntity e
pos.move(Direction.UP);
final boolean hasRain = entity.getWorld().hasRain(pos);
BlockState carpet = getBlockStateAt(entity, pos);
VoxelShape shape = carpet.getCollisionShape(entity.getWorld(), pos);
boolean isValidCarpet = !shape.isEmpty() && (shape.getMax(Axis.Y) < 0.2F && shape.getMax(Axis.Y) < collider.getMin(Axis.Y) + 0.1F);
VoxelShape shape = carpet.getOutlineShape(entity.getWorld(), pos);
boolean isValidCarpet = !shape.isEmpty() && shape.getMax(Axis.Y) < 0.3F;
SoundsKey association = SoundsKey.UNASSIGNED;
SoundsKey foliage = SoundsKey.UNASSIGNED;
SoundsKey wetAssociation = SoundsKey.UNASSIGNED;
Expand Down

0 comments on commit add0528

Please sign in to comment.