Skip to content

Commit

Permalink
fix?
Browse files Browse the repository at this point in the history
C10udburst authored Dec 14, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 9d54331 commit c45ea02
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@
import meteordevelopment.meteorclient.settings.SettingGroup;
import meteordevelopment.meteorclient.systems.modules.Module;
import meteordevelopment.meteorclient.utils.Utils;
import meteordevelopment.meteorclient.utils.player.ChatUtils;
import meteordevelopment.orbit.EventHandler;
import net.minecraft.client.network.AbstractClientPlayerEntity;
import net.minecraft.entity.player.PlayerEntity;
@@ -100,15 +101,15 @@ private void onGameLeft(GameLeftEvent event) {

private void sendLagMessage() {
String message = generateLagMessage();
mc.player.sendChatMessage(message, null);
ChatUtils.sendPlayerMsg(message);
}

private void sendLagWhisper() {
List<AbstractClientPlayerEntity> players = mc.world.getPlayers();
PlayerEntity player = players.get(new Random().nextInt(players.size()));
String message = generateLagMessage();

mc.player.sendChatMessage("/msg " + player.getGameProfile().getName() + " " + message, null);
ChatUtils.sendPlayerMsg("/msg " + player.getGameProfile().getName() + " " + message);
}

private String generateLagMessage() {

0 comments on commit c45ea02

Please sign in to comment.