Removed light level config. Out of scope.
This commit is contained in:
@ -8,7 +8,6 @@ import net.minecraft.core.Direction;
|
||||
import net.minecraft.server.level.ServerLevel;
|
||||
import net.minecraft.sounds.SoundSource;
|
||||
import net.minecraft.util.RandomSource;
|
||||
import net.minecraft.world.level.BlockGetter;
|
||||
import net.minecraft.world.level.Level;
|
||||
import net.minecraft.world.level.LevelReader;
|
||||
import net.minecraft.world.level.block.BonemealableBlock;
|
||||
@ -25,11 +24,6 @@ public class FireflyBushBlock extends BushBlock implements BonemealableBlock {
|
||||
super(properties);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getLightEmission(BlockState state, BlockGetter level, BlockPos pos) {
|
||||
return Config.Client.bushFireflyLightLevel.get();
|
||||
}
|
||||
|
||||
@Override
|
||||
@ParametersAreNonnullByDefault
|
||||
public void animateTick(BlockState blockState, Level level, BlockPos blockPos, RandomSource randomSource) {
|
||||
|
@ -57,7 +57,6 @@ public final class Config {
|
||||
public static ForgeConfigSpec.IntValue bushFireflyAmbientSoundChanceOneIn;
|
||||
public static ForgeConfigSpec.DoubleValue bushFireflyAmbientSoundVolume;
|
||||
public static ForgeConfigSpec.DoubleValue bushFireflyAmbientSoundPitch;
|
||||
public static ForgeConfigSpec.IntValue bushFireflyLightLevel;
|
||||
|
||||
Client(ForgeConfigSpec.Builder builder) {
|
||||
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);
|
||||
bushFireflyAmbientSoundPitch = builder
|
||||
.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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user