diff options
author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-05-28 12:02:04 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-28 12:02:04 +0700 |
commit | 01e4c0dfb2a9726a9bf1c4d1a1fe28edbc3d094c (patch) | |
tree | 2949a7d1a9e6a5e9fbf6db983491ab813614b889 /src/main/java/cc/polyfrost/oneconfig/plugin | |
parent | 2f45fed981d7fcdf6e39791fecfa1dd410614fbf (diff) | |
download | OneConfig-01e4c0dfb2a9726a9bf1c4d1a1fe28edbc3d094c.tar.gz OneConfig-01e4c0dfb2a9726a9bf1c4d1a1fe28edbc3d094c.tar.bz2 OneConfig-01e4c0dfb2a9726a9bf1c4d1a1fe28edbc3d094c.zip |
OC-32 OC-34 (#24)
* OC-34 hypixel utils class (#21)
* OC-26 Build Workflow
* OC-26 oops
* OC-33 some networking utils
* OC-34 idk
* OC-34 idk
* OC-34 restructure hypixel utils
* hypixelutils and multithreading
implement more events
remove vcal icon stuff
* more javadocs
Co-authored-by: Ethan <git@ethanlibs.co>
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/plugin')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/plugin/asm/tweakers/VigilantTransformer.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/plugin/asm/tweakers/VigilantTransformer.java b/src/main/java/cc/polyfrost/oneconfig/plugin/asm/tweakers/VigilantTransformer.java index 45dc1e2..fecdeed 100644 --- a/src/main/java/cc/polyfrost/oneconfig/plugin/asm/tweakers/VigilantTransformer.java +++ b/src/main/java/cc/polyfrost/oneconfig/plugin/asm/tweakers/VigilantTransformer.java @@ -93,12 +93,11 @@ public class VigilantTransformer implements ITransformer { public static VigilanceConfig returnNewConfig(Vigilant vigilant, File file) { if (vigilant != null && Minecraft.getMinecraft().isCallingFromMinecraftThread()) { String name = !vigilant.getGuiTitle().equals("Settings") ? vigilant.getGuiTitle() : Loader.instance().activeModContainer() == null ? "Unknown" : Loader.instance().activeModContainer().getName(); - String imageName = Loader.instance().activeModContainer() == null || Loader.instance().activeModContainer().getMetadata().logoFile.trim().equals("") ? null : "/" + Loader.instance().activeModContainer().getMetadata().logoFile; if (name.equals("OneConfig")) name = "Essential"; String finalName = name; // duplicate fix if (ConfigCore.oneConfigMods.stream().anyMatch(mod -> mod.name.equals(finalName))) return null; - return new VigilanceConfig(new Mod(name, ModType.THIRD_PARTY, imageName), file.getAbsolutePath(), vigilant); + return new VigilanceConfig(new Mod(name, ModType.THIRD_PARTY), file.getAbsolutePath(), vigilant); } else { return null; } |