-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Compat System for ASM Transformations + Immersive Engineering pat…
…ches (#719) Co-authored-by: Alexdoru <[email protected]>
- Loading branch information
1 parent
ffa1193
commit 3cf3d09
Showing
26 changed files
with
745 additions
and
394 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
src/main/java/com/gtnewhorizons/angelica/config/CompatConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package com.gtnewhorizons.angelica.config; | ||
|
||
import com.gtnewhorizon.gtnhlib.config.Config; | ||
|
||
@Config(modid = "angelica", filename = "angelica-compat") | ||
public class CompatConfig { | ||
|
||
@Config.Comment("Apply fixes to the LOTR mod") | ||
@Config.DefaultBoolean(true) | ||
@Config.RequiresMcRestart | ||
public static boolean fixLotr; | ||
|
||
@Config.Comment("Apply fixes to Extra Utilities") | ||
@Config.DefaultBoolean(true) | ||
@Config.RequiresMcRestart | ||
public static boolean fixExtraUtils; | ||
|
||
@Config.Comment("Apply fixes to Stacks on Stacks") | ||
@Config.DefaultBoolean(true) | ||
@Config.RequiresMcRestart | ||
public static boolean fixStacksOnStacks; | ||
|
||
@Config.Comment("Apply fixes to Minefactory Reloaded") | ||
@Config.DefaultBoolean(true) | ||
@Config.RequiresMcRestart | ||
public static boolean fixMinefactoryReloaded; | ||
|
||
@Config.Comment("Apply fixes to Thaumcraft") | ||
@Config.DefaultBoolean(true) | ||
@Config.RequiresMcRestart | ||
public static boolean fixThaumcraft; | ||
|
||
@Config.Comment("Apply fixes to ThaumicHorizons") | ||
@Config.DefaultBoolean(true) | ||
@Config.RequiresMcRestart | ||
public static boolean fixThaumicHorizons; | ||
|
||
@Config.Comment("Apply fixes to Immersive Engineering") | ||
@Config.DefaultBoolean(true) | ||
@Config.RequiresMcRestart | ||
public static boolean fixImmersiveEngineering; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/main/java/com/gtnewhorizons/angelica/transform/AsmUtil.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.gtnewhorizons.angelica.transform; | ||
|
||
import com.gtnewhorizons.angelica.loading.AngelicaTweaker; | ||
|
||
public class AsmUtil { | ||
|
||
public static String obf(String deobf, String obf) { | ||
if (AngelicaTweaker.isObfEnv()) { | ||
return obf; | ||
} | ||
return deobf; | ||
} | ||
} |
72 changes: 0 additions & 72 deletions
72
src/main/java/com/gtnewhorizons/angelica/transform/HUDCachingTransformer.java
This file was deleted.
Oops, something went wrong.
60 changes: 0 additions & 60 deletions
60
src/main/java/com/gtnewhorizons/angelica/transform/compat/CompatASMTransformers.java
This file was deleted.
Oops, something went wrong.
75 changes: 0 additions & 75 deletions
75
src/main/java/com/gtnewhorizons/angelica/transform/compat/ExtraUtilsTransformer.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.