跳到正文

Everlasting Music

作者:KorbynTalks

Makes Music not fade out after traveling some distance on Indev 20100223

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Everlasting Music

Thanks for checking out Everlasting Music! This Mod fixes a bug in Indev 20100223 that makes Music fade out after traveling some distance from where it started to play.

How does this work?

The reason for Music fading out is because of the Distance Falloff value for starting the Music being too low.

this.sndSystem.newStreamingSource(true, "BgMusic", ... 2, /* This value right here --> */ 32.0F);

To fix this, this Mod changes the value to 1.0 / 0.0, which in Java turns into Positive Infinity.

this.sndSystem.newStreamingSource(true, "BgMusic", ... 2, (float)(1.0 / 0.0));

Why can’t I install this like any other Mod?

This is a Jarmod. A type of mod that directly changes Minecraft’s classes through unzipping the Minecraft Jar and putting in the modified class files and zipping it back into a Jar again. If you don’t understand, look up how to do it.

评论

登录后评论和评分

KorbynTalks 的其他作品

查看全部 →