From fd06d7d45f8196df87d5f4404a5a367dd98f8516 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Mon, 27 May 2024 10:21:34 +0200 Subject: [PATCH] remove a warning --- .../src/main/java/com/baseband/client/module/world/Ping.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Client/src/main/java/com/baseband/client/module/world/Ping.java b/Client/src/main/java/com/baseband/client/module/world/Ping.java index 5bf7bb7..ff73b9c 100644 --- a/Client/src/main/java/com/baseband/client/module/world/Ping.java +++ b/Client/src/main/java/com/baseband/client/module/world/Ping.java @@ -9,6 +9,7 @@ import com.baseband.client.module.category.World; import net.minecraft.network.play.client.CPacketKeepAlive; import java.util.LinkedList; +import java.util.Objects; import java.util.Queue; @World @@ -31,7 +32,7 @@ public class Ping extends Feature { public void onTick() { if (mc.player != null && !queue.isEmpty() && queue.peek().passed()) { text = "Ping "+ (enabled ? " ยง7[" + queue.size() +"/" + seconds + "]" : ""); - mc.player.connection.sendPacket(queue.poll().getPacket()); + mc.player.connection.sendPacket(Objects.requireNonNull(queue.poll()).getPacket()); } }