mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-26 13:53:05 +00:00
Begin compatibility level support, java 8 must now be explicitly enabled
This commit is contained in:
1 parent
13ac04cc88
commit
7eb61bc53a
9 files changed
+258
-51
No files matched your search
@@ -37,6 +37,7 @@ public class MixinLaunchAgentDefault extends MixinLaunchAgentAbstract {
|
||||
protected static final String MFATT_MIXINCONFIGS = "MixinConfigs";
|
||||
protected static final String MFATT_TOKENPROVIDERS = "MixinTokenProviders";
|
||||
protected static final String MFATT_MAINCLASS = "Main-Class";
|
||||
protected static final String MFATT_COMPATIBILITY = "MixinCompatibilityLevel";
|
||||
|
||||
public MixinLaunchAgentDefault(URI uri) {
|
||||
super(uri);
|
||||
@@ -44,6 +45,11 @@ public class MixinLaunchAgentDefault extends MixinLaunchAgentAbstract {
|
||||
|
||||
@Override
|
||||
public void prepare() {
|
||||
String compatibilityLevel = this.attributes.get(MixinLaunchAgentDefault.MFATT_COMPATIBILITY);
|
||||
if (compatibilityLevel != null) {
|
||||
MixinTweaker.setCompatibilityLevel(compatibilityLevel);
|
||||
}
|
||||
|
||||
String mixinConfigs = this.attributes.get(MixinLaunchAgentDefault.MFATT_MIXINCONFIGS);
|
||||
if (mixinConfigs != null) {
|
||||
for (String config : mixinConfigs.split(",")) {
|
||||
|
||||
Reference in new issue
Block a user