thedocruby / resounding

A New Minecraft mod that provides realistic audio physics using parallel wave tracing and an improved physics algorithm.
https://thedocruby.dev/resounding
GNU Lesser General Public License v3.0
85 stars 4 forks source link

Sounds do not play outside the block grid #1

Closed thedocruby closed 2 years ago

thedocruby commented 2 years ago

This can easily be fixed by making https://github.com/thedocruby/resounding/blob/master/src/main/java/dev/thedocruby/resounding/Resounding.java#L467-L468 private class vars, assigning values once inside init(), and then checking them against the sound position in playSound(). This should fix the bug as well as improve performance.