FiguraMC / Figura

Extensively customize your character with Figura!
https://modrinth.com/mod/figura
GNU Lesser General Public License v2.1
225 stars 44 forks source link

fix sound functions breaking when stopped naturally #196

Closed KitCat962 closed 6 months ago

KitCat962 commented 6 months ago

When a Sound object stops naturally, it is put in an illegal state where the handle variable is not null, but the handle itself has already been released. This state causes the play and isPlaying functions to have unintended behaviour.

When a Sound object naturally stops, it may or may not be marked stopped internally and it continues to have a non-null handle.

Both of these issues have been fixed