mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-17 15:45:01 +00:00
cleanup code
This commit is contained in:
51 files changed
+637
-373
No files matched your search
@@ -105,21 +105,27 @@ public final class MixinInfo {
|
||||
}
|
||||
|
||||
private static MixinBootstrapperType detect() {
|
||||
if (!isClassPresentSafe("org.spongepowered.asm.launch.MixinBootstrap"))
|
||||
if (!isClassPresentSafe("org.spongepowered.asm.launch.MixinBootstrap")) {
|
||||
return MixinBootstrapperType.None;
|
||||
for (val candidate: MixinInfoCompatCompanion.UNIMIXIN_CANDIDATES) {
|
||||
}
|
||||
for (val candidate : MixinInfoCompatCompanion.UNIMIXIN_CANDIDATES) {
|
||||
if (isClassPresentSafe(candidate)) {
|
||||
return MixinBootstrapperType.UniMixin;
|
||||
}
|
||||
}
|
||||
if (isClassPresentSafe("com.falsepattern.gasstation.GasStation"))
|
||||
if (isClassPresentSafe("com.falsepattern.gasstation.GasStation")) {
|
||||
return MixinBootstrapperType.GasStation;
|
||||
if (isClassPresentSafe("ru.timeconqueror.spongemixins.core.SpongeMixinsCore"))
|
||||
}
|
||||
if (isClassPresentSafe("ru.timeconqueror.spongemixins.core.SpongeMixinsCore")) {
|
||||
return MixinBootstrapperType.SpongeMixins;
|
||||
if (isClassPresentSafe("io.github.crucible.grimoire.Grimoire") || isClassPresentSafe("io.github.crucible.grimoire.common.GrimoireCore"))
|
||||
}
|
||||
if (isClassPresentSafe("io.github.crucible.grimoire.Grimoire") || isClassPresentSafe(
|
||||
"io.github.crucible.grimoire.common.GrimoireCore")) {
|
||||
return MixinBootstrapperType.Grimoire;
|
||||
if (isClassPresentSafe("io.github.tox1cozz.mixinbooterlegacy.MixinBooterLegacyPlugin"))
|
||||
}
|
||||
if (isClassPresentSafe("io.github.tox1cozz.mixinbooterlegacy.MixinBooterLegacyPlugin")) {
|
||||
return MixinBootstrapperType.MixinBooterLegacy;
|
||||
}
|
||||
return MixinBootstrapperType.Other;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user