diff --git a/src/main/java/dev/micle/firefly_bush_backport/block/FireflyBushBlock.java b/src/main/java/dev/micle/firefly_bush_backport/block/FireflyBushBlock.java index 459259e..73ab596 100644 --- a/src/main/java/dev/micle/firefly_bush_backport/block/FireflyBushBlock.java +++ b/src/main/java/dev/micle/firefly_bush_backport/block/FireflyBushBlock.java @@ -31,12 +31,7 @@ public class FireflyBushBlock extends BushBlock implements BonemealableBlock { && isMoonVisible(level) && level.getHeight(Heightmap.Types.MOTION_BLOCKING_NO_LEAVES, blockPos.getX(), blockPos.getZ()) <= blockPos.getY()) { level.playLocalSound( - blockPos, - ModSounds.FIREFLY_BUSH_IDLE.get(), - SoundSource.AMBIENT, - Config.Client.bushFireflyAmbientSoundVolume.get().floatValue(), - Config.Client.bushFireflyAmbientSoundPitch.get().floatValue(), - false + blockPos, ModSounds.FIREFLY_BUSH_IDLE.get(), SoundSource.AMBIENT, 1.0F, 1.0F, false ); } diff --git a/src/main/java/dev/micle/firefly_bush_backport/config/Config.java b/src/main/java/dev/micle/firefly_bush_backport/config/Config.java index 6e809a8..0a11d7e 100644 --- a/src/main/java/dev/micle/firefly_bush_backport/config/Config.java +++ b/src/main/java/dev/micle/firefly_bush_backport/config/Config.java @@ -55,8 +55,6 @@ public final class Config { public static ForgeConfigSpec.DoubleValue bushFireflyVerticalRange; public static ForgeConfigSpec.IntValue bushFireflySpawnMaxBrightnessLevel; public static ForgeConfigSpec.IntValue bushFireflyAmbientSoundChanceOneIn; - public static ForgeConfigSpec.DoubleValue bushFireflyAmbientSoundVolume; - public static ForgeConfigSpec.DoubleValue bushFireflyAmbientSoundPitch; public static ForgeConfigSpec.DoubleValue particleFadeOutLightTime; public static ForgeConfigSpec.DoubleValue particleFadeInLightTime; @@ -77,10 +75,6 @@ public final class Config { .defineInRange("bushFireflySpawnMaxBrightnessLevel", 13, 0, Level.MAX_BRIGHTNESS); bushFireflyAmbientSoundChanceOneIn = builder .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.comment("Settings for the firefly particle.").push("particle");