Skip to content

Commit

Permalink
Update config/readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jchung01 committed Sep 25, 2024
1 parent f6f4726 commit a8781ad
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,8 @@ All changes are toggleable via config files.
* **Replanting Cocoa Beans:** Allows Forestry farms to automatically replant cocoa beans
* **HWYLA**
* **Keybindings Fix:** Fixes crashes in all menus when changing HWYLA keybindings to unsupported values
* **In Control!**
* **Spawn Rule Stats Fix:** Fixes onJoin spawn rules repeatedly modifying mob attack/health/speed
* **IndustrialCraft 2**
* **Duplication Fixes:** Fixes various duplication exploits
* **Industrial Foregoing**
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ debug_extra_utilities_2 = false
debug_forestry = false
debug_forgemultipartcbe = false
debug_hwyla = false
debug_incontrol = true
debug_incontrol = false
debug_industrial_foregoing = false
debug_industrialcraft = false
debug_iron_backpacks = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ public class UTConfigMods
@Config.Name("Forestry")
public static final ForestryCategory FORESTRY = new ForestryCategory();

@Config.LangKey("cfg.universaltweaks.modintegration.incontrol")
@Config.Name("In Control!")
public static final InControlCategory INCONTROL = new InControlCategory();

@Config.LangKey("cfg.universaltweaks.modintegration.industrialcraft")
@Config.Name("IndustrialCraft 2")
public static final IndustrialCraftCategory INDUSTRIALCRAFT = new IndustrialCraftCategory();
Expand Down Expand Up @@ -615,6 +619,14 @@ public static class ForestryCategory
public boolean utParticleFixesToggle = true;
}

public static class InControlCategory
{
@Config.RequiresMcRestart
@Config.Name("Spawn Rule Stats Fix")
@Config.Comment("Fixes onJoin spawn rules repeatedly modifying mob attack/health/speed")
public boolean utStatsFixToggle = true;
}

public static class IndustrialCraftCategory
{
@Config.RequiresMcRestart
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ public class UTMixinLoader implements ILateMixinLoader
put("mixins.mods.forestry.dupes.json", () -> loaded("forestry") && UTConfigMods.FORESTRY.utDuplicationFixesToggle);
put("mixins.mods.forestry.extratrees.json", () -> loaded("extratrees"));
put("mixins.mods.forestry.json", () -> loaded("forestry"));
// TODO: Add config
put("mixins.mods.incontrol.json", () -> loaded("incontrol"));
put("mixins.mods.incontrol.json", () -> loaded("incontrol") && UTConfigMods.INCONTROL.utStatsFixToggle);
put("mixins.mods.industrialcraft.dupes.json", () -> loaded("ic2") && UTConfigMods.INDUSTRIALCRAFT.utDuplicationFixesToggle);
put("mixins.mods.industrialforegoing.dupes.json", () -> loaded("industrialforegoing") && UTConfigMods.INDUSTRIAL_FOREGOING.utDuplicationFixesToggle);
put("mixins.mods.industrialforegoing.rangeaddon.json", () -> loaded("industrialforegoing") && UTConfigMods.INDUSTRIAL_FOREGOING.utRangeAddonNumberFix);
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/universaltweaks/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ cfg.universaltweaks.modintegration.erebus=The Erebus
cfg.universaltweaks.modintegration.esm=Epic Siege Mod
cfg.universaltweaks.modintegration.extrautilities=Extra Utilities 2
cfg.universaltweaks.modintegration.forestry=Forestry
cfg.universaltweaks.modintegration.incontrol=In Control!
cfg.universaltweaks.modintegration.industrialcraft=IndustrialCraft 2
cfg.universaltweaks.modintegration.industrialforegoing=Industrial Foregoing
cfg.universaltweaks.modintegration.infernalmobs=Infernal Mobs
Expand Down

0 comments on commit a8781ad

Please sign in to comment.