Skip to content

Commit

Permalink
Eternal suffering
Browse files Browse the repository at this point in the history
  • Loading branch information
Deftu committed Jan 2, 2025
1 parent 9537835 commit 313d686
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pluginManagement {

plugins {
kotlin("jvm") version("2.0.0")
id("dev.deftu.gradle.multiversion-root") version("2.18.1")
id("dev.deftu.gradle.multiversion-root") version("2.18.2")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
package org.polyfrost.hytils.mixin;

//#if FORGE
import org.polyfrost.oneconfig.api.event.v1.EventManager;
import org.polyfrost.oneconfig.api.hypixel.v1.HypixelUtils;
import org.polyfrost.hytils.HytilsReborn;
import org.polyfrost.hytils.events.TitleEvent;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiIngame;
import net.minecraft.world.storage.WorldInfo;
import net.minecraftforge.client.GuiIngameForge;
import net.minecraftforge.common.MinecraftForge;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
Expand All @@ -48,10 +48,10 @@ public GuiIngameForgeMixin_TitleEvent(Minecraft mcIn) {
private void hytils$postTitleEvent(int l, int age, float opacity, CallbackInfo ci) {
if (HypixelUtils.isHypixel()) {
TitleEvent event = new TitleEvent(this.displayedTitle, this.displayedSubTitle);
MinecraftForge.EVENT_BUS.post(event);
EventManager.INSTANCE.post(event);

// Set the title and subtitle to empty strings.
if (event.isCanceled()) {
if (event.cancelled) {
displayTitle(null, null, -1, -1, -1);
ci.cancel();
}
Expand Down

0 comments on commit 313d686

Please sign in to comment.