Private
Public Access
1
0

Removed light level config. Out of scope.

This commit is contained in:
2025-06-06 19:56:44 +01:00
parent b59d68240f
commit 47489c516e
2 changed files with 0 additions and 10 deletions

View File

@ -8,7 +8,6 @@ import net.minecraft.core.Direction;
import net.minecraft.server.level.ServerLevel; import net.minecraft.server.level.ServerLevel;
import net.minecraft.sounds.SoundSource; import net.minecraft.sounds.SoundSource;
import net.minecraft.util.RandomSource; import net.minecraft.util.RandomSource;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.world.level.Level; import net.minecraft.world.level.Level;
import net.minecraft.world.level.LevelReader; import net.minecraft.world.level.LevelReader;
import net.minecraft.world.level.block.BonemealableBlock; import net.minecraft.world.level.block.BonemealableBlock;
@ -25,11 +24,6 @@ public class FireflyBushBlock extends BushBlock implements BonemealableBlock {
super(properties); super(properties);
} }
@Override
public int getLightEmission(BlockState state, BlockGetter level, BlockPos pos) {
return Config.Client.bushFireflyLightLevel.get();
}
@Override @Override
@ParametersAreNonnullByDefault @ParametersAreNonnullByDefault
public void animateTick(BlockState blockState, Level level, BlockPos blockPos, RandomSource randomSource) { public void animateTick(BlockState blockState, Level level, BlockPos blockPos, RandomSource randomSource) {

View File

@ -57,7 +57,6 @@ public final class Config {
public static ForgeConfigSpec.IntValue bushFireflyAmbientSoundChanceOneIn; public static ForgeConfigSpec.IntValue bushFireflyAmbientSoundChanceOneIn;
public static ForgeConfigSpec.DoubleValue bushFireflyAmbientSoundVolume; public static ForgeConfigSpec.DoubleValue bushFireflyAmbientSoundVolume;
public static ForgeConfigSpec.DoubleValue bushFireflyAmbientSoundPitch; public static ForgeConfigSpec.DoubleValue bushFireflyAmbientSoundPitch;
public static ForgeConfigSpec.IntValue bushFireflyLightLevel;
Client(ForgeConfigSpec.Builder builder) { Client(ForgeConfigSpec.Builder builder) {
builder.comment("Official settings for the firefly bush.").push("bush"); builder.comment("Official settings for the firefly bush.").push("bush");
@ -75,9 +74,6 @@ public final class Config {
.defineInRange("bushFireflyAmbientSoundVolume", 1.0, 0, Double.MAX_VALUE); .defineInRange("bushFireflyAmbientSoundVolume", 1.0, 0, Double.MAX_VALUE);
bushFireflyAmbientSoundPitch = builder bushFireflyAmbientSoundPitch = builder
.defineInRange("bushFireflyAmbientSoundPitch", 1.0, 0, Double.MAX_VALUE); .defineInRange("bushFireflyAmbientSoundPitch", 1.0, 0, Double.MAX_VALUE);
bushFireflyLightLevel = builder
.comment("NOTE: This option requires blocks to be replaced!")
.defineInRange("bushFireflyLightLevel", 2, 0, Level.MAX_BRIGHTNESS);
builder.pop(); builder.pop();
} }