mixinPlugin检测biggerae&ufo,选择性屏蔽对craftingcpucluster的mixin
This commit is contained in:
parent
708f5402ff
commit
ed7fc29398
|
|
@ -176,6 +176,9 @@ dependencies {
|
|||
runtimeOnly "curse.maven:ftb-library-forge-404465:7029003"
|
||||
runtimeOnly "curse.maven:architectury-api-419699:5786327"
|
||||
|
||||
//biggerae2
|
||||
// runtimeOnly "curse.maven:bigger-ae2-1013772:6587078"
|
||||
|
||||
|
||||
runtimeOnly fileTree(dir: 'libs', includes: ['*.jar'])
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,14 @@ public class ExtendedAEPlusMixinPlugin implements IMixinConfigPlugin {
|
|||
return isClassPresent("net.pedroksl.advanced_ae.AdvancedAE");
|
||||
}
|
||||
|
||||
private static boolean isUfoPresent() {
|
||||
return isClassPresent("com.raishxn.ufo.UfoMod");
|
||||
}
|
||||
|
||||
private static boolean isBiggerAePresent() {
|
||||
return isClassPresent("cn.dancingsnow.bigger_ae2.BiggerAE2Mod");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onLoad(String mixinPackage) { }
|
||||
|
||||
|
|
@ -44,6 +52,11 @@ public class ExtendedAEPlusMixinPlugin implements IMixinConfigPlugin {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
if (mixinClassName.equals("com.extendedae_plus.mixin.ae2.CraftingCPUClusterMixin")) {
|
||||
if (isUfoPresent() || isBiggerAePresent()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user