From add05282d132d0d15fd143b8974328928bcb1c20 Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 11 Mar 2024 01:23:28 +0000 Subject: [PATCH] Fixed snow not producing footsteps #283 --- src/main/java/eu/ha3/presencefootsteps/world/PFSolver.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/ha3/presencefootsteps/world/PFSolver.java b/src/main/java/eu/ha3/presencefootsteps/world/PFSolver.java index ed19ffda..8f3e0976 100644 --- a/src/main/java/eu/ha3/presencefootsteps/world/PFSolver.java +++ b/src/main/java/eu/ha3/presencefootsteps/world/PFSolver.java @@ -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;