Private
Public Access
1
0

Removed options for volume and pitch, they don't seem to do much?

This commit is contained in:
2025-06-06 20:27:52 +01:00
parent b12dff0736
commit 87da0e53f7
2 changed files with 1 additions and 12 deletions

View File

@ -31,12 +31,7 @@ public class FireflyBushBlock extends BushBlock implements BonemealableBlock {
&& isMoonVisible(level) && isMoonVisible(level)
&& level.getHeight(Heightmap.Types.MOTION_BLOCKING_NO_LEAVES, blockPos.getX(), blockPos.getZ()) <= blockPos.getY()) { && level.getHeight(Heightmap.Types.MOTION_BLOCKING_NO_LEAVES, blockPos.getX(), blockPos.getZ()) <= blockPos.getY()) {
level.playLocalSound( level.playLocalSound(
blockPos, blockPos, ModSounds.FIREFLY_BUSH_IDLE.get(), SoundSource.AMBIENT, 1.0F, 1.0F, false
ModSounds.FIREFLY_BUSH_IDLE.get(),
SoundSource.AMBIENT,
Config.Client.bushFireflyAmbientSoundVolume.get().floatValue(),
Config.Client.bushFireflyAmbientSoundPitch.get().floatValue(),
false
); );
} }

View File

@ -55,8 +55,6 @@ public final class Config {
public static ForgeConfigSpec.DoubleValue bushFireflyVerticalRange; public static ForgeConfigSpec.DoubleValue bushFireflyVerticalRange;
public static ForgeConfigSpec.IntValue bushFireflySpawnMaxBrightnessLevel; public static ForgeConfigSpec.IntValue bushFireflySpawnMaxBrightnessLevel;
public static ForgeConfigSpec.IntValue bushFireflyAmbientSoundChanceOneIn; public static ForgeConfigSpec.IntValue bushFireflyAmbientSoundChanceOneIn;
public static ForgeConfigSpec.DoubleValue bushFireflyAmbientSoundVolume;
public static ForgeConfigSpec.DoubleValue bushFireflyAmbientSoundPitch;
public static ForgeConfigSpec.DoubleValue particleFadeOutLightTime; public static ForgeConfigSpec.DoubleValue particleFadeOutLightTime;
public static ForgeConfigSpec.DoubleValue particleFadeInLightTime; public static ForgeConfigSpec.DoubleValue particleFadeInLightTime;
@ -77,10 +75,6 @@ public final class Config {
.defineInRange("bushFireflySpawnMaxBrightnessLevel", 13, 0, Level.MAX_BRIGHTNESS); .defineInRange("bushFireflySpawnMaxBrightnessLevel", 13, 0, Level.MAX_BRIGHTNESS);
bushFireflyAmbientSoundChanceOneIn = builder bushFireflyAmbientSoundChanceOneIn = builder
.defineInRange("bushFireflyAmbientSoundChanceOneIn", 30, 0, Integer.MAX_VALUE); .defineInRange("bushFireflyAmbientSoundChanceOneIn", 30, 0, Integer.MAX_VALUE);
bushFireflyAmbientSoundVolume = builder
.defineInRange("bushFireflyAmbientSoundVolume", 1.0, 0, Double.MAX_VALUE);
bushFireflyAmbientSoundPitch = builder
.defineInRange("bushFireflyAmbientSoundPitch", 1.0, 0, Double.MAX_VALUE);
builder.pop(); builder.pop();
builder.comment("Settings for the firefly particle.").push("particle"); builder.comment("Settings for the firefly particle.").push("particle");