33import java .util .ArrayList ;
44import java .util .Collections ;
55import java .util .List ;
6+ import java .util .function .BooleanSupplier ;
7+ import mekanism .api .functions .ConstantPredicates ;
68import mekanism .api .math .FloatingLong ;
79import mekanism .common .config .value .CachedBooleanValue ;
810import mekanism .common .config .value .CachedConfigValue ;
1921import net .minecraft .SharedConstants ;
2022import net .minecraft .resources .ResourceLocation ;
2123import net .neoforged .fml .config .ModConfig .Type ;
24+ import net .neoforged .fml .loading .FMLEnvironment ;
2225import net .neoforged .neoforge .common .ModConfigSpec ;
2326import net .neoforged .neoforge .fluids .FluidType ;
2427
@@ -43,6 +46,8 @@ public class GeneralConfig extends BaseMekanismConfig {
4346
4447 private final ModConfigSpec configSpec ;
4548
49+ public final BooleanSupplier enableAlphaWarning ;
50+
4651 public final CachedBooleanValue logPackets ;
4752 public final CachedBooleanValue allowChunkloading ;
4853 public final CachedBooleanValue easyMinerFilters ;
@@ -135,6 +140,14 @@ public class GeneralConfig extends BaseMekanismConfig {
135140 ModConfigSpec .Builder builder = new ModConfigSpec .Builder ();
136141 builder .comment ("General Config. This config is synced from server to client." ).push ("general" );
137142
143+ //Note: We only enable this config option in dev mode
144+ if (FMLEnvironment .production ) {
145+ enableAlphaWarning = ConstantPredicates .ALWAYS_TRUE ;
146+ } else {
147+ enableAlphaWarning = CachedBooleanValue .wrap (this , builder .comment ("Display Mekanism's alpha warning when joining the game if Mekanism is currently in alpha. Dev mode only setting." )
148+ .define ("alphaWarning" , true ));
149+ }
150+
138151 logPackets = CachedBooleanValue .wrap (this , builder .comment ("Log Mekanism packet names. Debug setting." )
139152 .define ("logPackets" , false ));
140153 allowChunkloading = CachedBooleanValue .wrap (this , builder .comment ("Disable to make the anchor upgrade not do anything." )
0 commit comments