From 28bc87528709c76d85d90c065d428ef9c31d2bbb Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Mon, 10 Apr 2023 20:54:07 +0200 Subject: Hide own player name or hypixel watchdog player names from visitor detection --- src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCopilot.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/dungeon') diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCopilot.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCopilot.kt index 8b696ad61..bb3be6d0d 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCopilot.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCopilot.kt @@ -5,7 +5,6 @@ import at.hannibal2.skyhanni.events.* import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.RenderUtils.renderString import at.hannibal2.skyhanni.utils.StringUtils.matchRegex -import net.minecraft.client.Minecraft import net.minecraft.entity.item.EntityArmorStand import net.minecraftforge.event.world.WorldEvent import net.minecraftforge.fml.common.eventhandler.SubscribeEvent @@ -25,7 +24,7 @@ class DungeonCopilot { changeNextStep("Ready up") } if (message.endsWith("§a is now ready!")) { - var name = Minecraft.getMinecraft().thePlayer.name + var name = LorenzUtils.getPlayerName() if (message.contains(name)) { changeNextStep("Wait for the dungeon to start!") } -- cgit