This repository was archived by the owner on Jul 24, 2026. It is now read-only.
Repository navigation
ExtendedNoteBlock r1.3.6
Fix: Prevent sound from cutting out on the final tick of a fadeOut period
The existing linear fade-out formula incorrectly calculated a volume of 0.0 on the last tick of the fade-out duration (when timeIntoFadeOut == fadeOutTicks), causing the sound to prematurely cut out one tick too early.
To fix this, the denominator in the fade-out progress calculation has been changed from fadeOutTicks to fadeOutTicks + 1. This ensures that the sound volume is attenuated smoothly towards the end but remains above 0.0 (e.g., 50% for a fadeOut=1 scenario) on the last active tick, preserving the full intended sound duration.