Skip to content

Commit

Permalink
Don't play wet sounds for waterlogged blocks with a solid top surface.
Browse files Browse the repository at this point in the history
…Closes #325
  • Loading branch information
Sollace committed Nov 1, 2024
1 parent a724860 commit add7714
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 @@ -281,8 +281,8 @@ private Association findAssociation(AssociationPool associations, LivingEntity e

if (association.isEmitter() && (hasRain
|| (!associations.wasLastMatchGolem() && (
target.getFluidState().isIn(FluidTags.WATER)
|| carpet.getFluidState().isIn(FluidTags.WATER)
(target.getFluidState().isIn(FluidTags.WATER) && !target.isSideSolidFullSquare(entity.getWorld(), pos, Direction.UP))
|| (carpet.getFluidState().isIn(FluidTags.WATER) && !carpet.isSideSolidFullSquare(entity.getWorld(), pos, Direction.UP))
)))) {
// Only if the block is open to the sky during rain
// or the block is submerged
Expand Down

0 comments on commit add7714

Please sign in to comment.