From 6e3235a9859379d7f52c94549e53efb0e49d7c85 Mon Sep 17 00:00:00 2001 From: Jason Mitchell Date: Mon, 26 Feb 2024 09:48:11 -0800 Subject: [PATCH] Gate some advanced/beta features behind java properties --- .../gtnewhorizons/angelica/loading/AngelicaTweaker.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gtnewhorizons/angelica/loading/AngelicaTweaker.java b/src/main/java/com/gtnewhorizons/angelica/loading/AngelicaTweaker.java index 943991bb8..0ff9393f2 100644 --- a/src/main/java/com/gtnewhorizons/angelica/loading/AngelicaTweaker.java +++ b/src/main/java/com/gtnewhorizons/angelica/loading/AngelicaTweaker.java @@ -7,7 +7,6 @@ import com.gtnewhorizons.angelica.config.ConfigurationManager; import com.gtnewhorizons.angelica.mixins.Mixins; import com.gtnewhorizons.angelica.mixins.TargetedMod; -import cpw.mods.fml.relauncher.FMLLaunchHandler; import cpw.mods.fml.relauncher.IFMLLoadingPlugin; import mist475.mcpatcherforge.asm.AsmTransformers; import mist475.mcpatcherforge.asm.mappings.Namer; @@ -20,8 +19,6 @@ import org.spongepowered.asm.launch.GlobalProperties; import org.spongepowered.asm.service.mojang.MixinServiceLaunchWrapper; -import java.util.ArrayList; -import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Map; @@ -47,6 +44,12 @@ public class AngelicaTweaker implements IFMLLoadingPlugin, IEarlyMixinLoader { loggerConfig.setLevel(Level.DEBUG); } ctx.updateLoggers(); + + // Too many bug reports because people refuse to read or just want to try it - so make these only able + // to be enabled by system properties for now. + AngelicaConfig.enableIris = Boolean.parseBoolean(System.getProperty("angelica.enableShaders", "false")); + AngelicaConfig.enableMCPatcherForgeFeatures = Boolean.parseBoolean(System.getProperty("angelica.enableMCPatcherForgeFeatures", "false")); + } catch (ConfigException e) { throw new RuntimeException(e); }