make ping module less inconsistent
All checks were successful
/ Build BaseBand (push) Successful in 2m43s
All checks were successful
/ Build BaseBand (push) Successful in 2m43s
This commit is contained in:
parent
4f1dfbdb1a
commit
80fd4047ce
1 changed files with 7 additions and 0 deletions
|
@ -10,6 +10,8 @@ import de.com.baseband.client.registry.annotation.Range;
|
||||||
import net.minecraft.network.play.client.CPacketKeepAlive;
|
import net.minecraft.network.play.client.CPacketKeepAlive;
|
||||||
import net.minecraft.network.play.server.SPacketKeepAlive;
|
import net.minecraft.network.play.server.SPacketKeepAlive;
|
||||||
import net.minecraft.network.Packet;
|
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.LinkedList;
|
||||||
import java.util.Queue;
|
import java.util.Queue;
|
||||||
|
@ -48,6 +50,11 @@ public class Ping extends Feature {
|
||||||
(holderRecv.isEmpty() ? "-" : "§c" + holderRecv.size()) + "↓§7";
|
(holderRecv.isEmpty() ? "-" : "§c" + holderRecv.size()) + "↓§7";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SubscribeEvent
|
||||||
|
public void renderWorldEvent(RenderWorldLastEvent event) {
|
||||||
|
onTick();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onTick() {
|
public void onTick() {
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue