Add config option to disable the rainbow compost in barrel during June

This commit is contained in:
thedarkcolour 2024-05-21 11:27:37 -07:00
parent 26c67476ae
commit 11f41e1514
No known key found for this signature in database
GPG Key ID: 6599A8E0516C8F38
2 changed files with 6 additions and 2 deletions

View File

@ -327,7 +327,7 @@ public class RenderUtil {
} }
public static Color getRainbowColor(long time, float partialTicks) { public static Color getRainbowColor(long time, float partialTicks) {
return Color.getHSBColor((180 * Mth.sin((time + partialTicks) / 16.0f) - 180) / 360.0f, 0.7f, 0.8f); return Color.getHSBColor((180 * Mth.sin((time + partialTicks) / 30.0f) - 180) / 360.0f, 0.5f, 0.8f);
} }
public static ShaderInstance getRenderTypeTintedCutoutMippedShader() { public static ShaderInstance getRenderTypeTintedCutoutMippedShader() {

View File

@ -40,6 +40,7 @@ public class EConfig {
public static class Client { public static class Client {
public final BooleanValue useFastInfestedLeaves; public final BooleanValue useFastInfestedLeaves;
public final BooleanValue rainbowCompostDuringJune;
public Client(ForgeConfigSpec.Builder builder) { public Client(ForgeConfigSpec.Builder builder) {
builder.comment("Client configuration for Ex Deorum").push("client"); builder.comment("Client configuration for Ex Deorum").push("client");
@ -47,6 +48,9 @@ public class EConfig {
this.useFastInfestedLeaves = builder this.useFastInfestedLeaves = builder
.comment("Whether to use a simplified renderer for infested leaves (reduces FPS lag with lots of infested trees)") .comment("Whether to use a simplified renderer for infested leaves (reduces FPS lag with lots of infested trees)")
.define("use_fast_infested_leaves", false); .define("use_fast_infested_leaves", false);
this.rainbowCompostDuringJune = builder
.comment("Whether compost in barrels appears as rainbow colored during the month of June")
.define("rainbow_compost_during_june", true);
builder.pop(); builder.pop();
} }