Skip to content

Commit

Permalink
Potentially fix sounds on the edges of blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Sollace committed Jun 28, 2022
1 parent b7c300b commit f3a97c3
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 @@ -145,10 +145,10 @@ private Association findAssociation(Entity player, BlockPos pos) {

// Take the maximum direction and try with the orthogonal direction of it
if (isXdangMax) {
return findAssociation(player.world, pos.north(zdang > 0 ? 1 : -1), collider);
return findAssociation(player.world, pos.south(zdang > 0 ? 1 : -1), collider);
}

return findAssociation(player.world, pos.west(xdang > 0 ? 1 : -1), collider);
return findAssociation(player.world, pos.east(xdang > 0 ? 1 : -1), collider);
}

private String findForGolem(World world, BlockPos pos, String substrate) {
Expand Down

0 comments on commit f3a97c3

Please sign in to comment.