code cleanup

This commit is contained in:
FalsePattern committed 2022-08-21 10:20:40 +02:00
1 parent 2ed360b26c
commit 9bcab6eb1a
4 files changed
+9 -14

No files matched your search

@@ -21,7 +21,6 @@
package com.falsepattern.lib.internal.asm;
import com.falsepattern.lib.internal.Tags;
import com.falsepattern.lib.internal.asm.FPTransformer;
import lombok.Getter;
import lombok.val;
@@ -28,6 +28,7 @@ public final class ConfigSyncEventHandler {
FMLCommonHandler.instance().bus().register(instance);
}
}
@SneakyThrows
@SubscribeEvent
public void onJoinWorld(EntityJoinWorldEvent e) {
@@ -84,8 +84,7 @@ public final class UpdateCheckerImpl {
.groupId("com.falsepattern")
.artifactId("json")
.minVersion(new SemanticVersion(0, 4, 0))
.maxVersion(new SemanticVersion(0,
Integer.MAX_VALUE,
.maxVersion(new SemanticVersion(0, Integer.MAX_VALUE,
Integer.MAX_VALUE))
.preferredVersion(new SemanticVersion(0, 4, 1))
.build());
@@ -76,22 +76,18 @@ public final class MixinInfo {
try {
Class.forName("io.github.tox1cozz.mixinbooterlegacy.MixinBooterLegacyPlugin");
return MixinBootstrapperType.MixinBooterLegacy;
} catch (ClassNotFoundException ignored) {}
} catch (ClassNotFoundException ignored) {
}
return MixinBootstrapperType.Other;
}
@StableAPI(since = "0.10.2")
public enum MixinBootstrapperType {
@StableAPI.Expose
None,
@StableAPI.Expose
SpongeMixins,
@StableAPI.Expose
Grimoire,
@StableAPI.Expose
MixinBooterLegacy,
@StableAPI.Expose
Other
@StableAPI.Expose None,
@StableAPI.Expose SpongeMixins,
@StableAPI.Expose Grimoire,
@StableAPI.Expose MixinBooterLegacy,
@StableAPI.Expose Other
}
}