Skip to content

Commit 9418cd0

Browse files
committed
Don't play wet sounds for waterlogged blocks with a solid top surface. Closes #325
1 parent f53f65d commit 9418cd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/eu/ha3/presencefootsteps/world/PFSolver.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ private Association findAssociation(AssociationPool associations, LivingEntity e
281281

282282
if (association.isEmitter() && (hasRain
283283
|| (!associations.wasLastMatchGolem() && (
284-
target.getFluidState().isIn(FluidTags.WATER)
285-
|| carpet.getFluidState().isIn(FluidTags.WATER)
284+
(target.getFluidState().isIn(FluidTags.WATER) && !target.isSideSolidFullSquare(entity.getWorld(), pos, Direction.UP))
285+
|| (carpet.getFluidState().isIn(FluidTags.WATER) && !carpet.isSideSolidFullSquare(entity.getWorld(), pos, Direction.UP))
286286
)))) {
287287
// Only if the block is open to the sky during rain
288288
// or the block is submerged

0 commit comments

Comments
 (0)