Merge pull request #13903 from abextm/music-floor

music: use vanilla's volume percentage conversion
This commit is contained in:
Jordan
2021-07-20 17:13:32 +00:00
committed by GitHub

View File

@@ -861,7 +861,8 @@ public class MusicPlugin extends Plugin
public void updateVar()
{
int val = getValue();
client.getVarps()[this.var.getId()] = val * 100 / this.max;
int varVal = Math.round((float) val / (max / 100.f));
client.getVarps()[this.var.getId()] = varVal;
}
public void shutDown()