From 80fd4047ce7533b0d16cc331ef7760829692b48a Mon Sep 17 00:00:00 2001 From: TudbuT Date: Sat, 5 Oct 2024 01:37:52 +0200 Subject: [PATCH] make ping module less inconsistent --- .../com/baseband/client/feature/modules/ingame/Ping.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Client/src/main/java/de/com/baseband/client/feature/modules/ingame/Ping.java b/Client/src/main/java/de/com/baseband/client/feature/modules/ingame/Ping.java index 20f48c6..b420364 100644 --- a/Client/src/main/java/de/com/baseband/client/feature/modules/ingame/Ping.java +++ b/Client/src/main/java/de/com/baseband/client/feature/modules/ingame/Ping.java @@ -10,6 +10,8 @@ import de.com.baseband.client.registry.annotation.Range; import net.minecraft.network.play.client.CPacketKeepAlive; import net.minecraft.network.play.server.SPacketKeepAlive; import net.minecraft.network.Packet; +import net.minecraftforge.client.event.RenderWorldLastEvent; +import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import java.util.LinkedList; import java.util.Queue; @@ -48,6 +50,11 @@ public class Ping extends Feature { (holderRecv.isEmpty() ? "-" : "§c" + holderRecv.size()) + "↓§7"; } + @SubscribeEvent + public void renderWorldEvent(RenderWorldLastEvent event) { + onTick(); + } + @Override public void onTick() { while (true) {