Skip to content
This repository was archived by the owner on Feb 19, 2019. It is now read-only.

Commit bcf7a90

Browse files
committed
Fix bad FML check
1 parent d68df06 commit bcf7a90

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/clientapi/load/ClientTweaker.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ private void setupMixin() {
7878
// Default to NOTCH obfuscation context
7979
String obfuscation = ObfuscationServiceMCP.NOTCH;
8080

81-
// If there are any tweak classes that contain "FMLTweaker", then set the obfuscation context to SEARGE
82-
if (tweakClasses.stream().anyMatch(s -> s.contains("FMLTweaker"))) {
81+
// If there are any tweak classes that are packaged under "net.minecraftforge.fml.common.launcher",
82+
// switch the obfuscation context in the mixin environment to SEARGE
83+
if (tweakClasses.stream().anyMatch(s -> s.contains("net.minecraftforge.fml.common.launcher"))) {
8384
obfuscation = ObfuscationServiceMCP.SEARGE;
8485
ClientAPI.LOGGER.info("Discovered FML! Switching to SEARGE mappings.");
8586
}

0 commit comments

Comments
 (0)