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) {