remove a warning
This commit is contained in:
parent
dd66d5c607
commit
fd06d7d45f
1 changed files with 2 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue