diff options
author | RoseGoldIsntGay <yoavkau@gmail.com> | 2021-11-13 23:48:21 +0200 |
---|---|---|
committer | RoseGoldIsntGay <yoavkau@gmail.com> | 2021-11-13 23:48:21 +0200 |
commit | 471894a91cf02f42282f677472eb8bf07f270d5c (patch) | |
tree | d2b5fb6f1fb90c42236f9560214164f514197d1a /src/main/java/rosegoldaddons/features/WartMacro.java | |
parent | 6f69d1e1aff688bf2f5ca34754640eed5102b045 (diff) | |
download | RGA-471894a91cf02f42282f677472eb8bf07f270d5c.tar.gz RGA-471894a91cf02f42282f677472eb8bf07f270d5c.tar.bz2 RGA-471894a91cf02f42282f677472eb8bf07f270d5c.zip |
2.2.0
Diffstat (limited to 'src/main/java/rosegoldaddons/features/WartMacro.java')
-rw-r--r-- | src/main/java/rosegoldaddons/features/WartMacro.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/rosegoldaddons/features/WartMacro.java b/src/main/java/rosegoldaddons/features/WartMacro.java index 8b47fcb..b96f25b 100644 --- a/src/main/java/rosegoldaddons/features/WartMacro.java +++ b/src/main/java/rosegoldaddons/features/WartMacro.java @@ -11,6 +11,7 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.gameevent.TickEvent; import rosegoldaddons.Main; import rosegoldaddons.commands.WartSetup; +import rosegoldaddons.utils.ChatUtils; import rosegoldaddons.utils.RenderUtils; import java.awt.*; @@ -124,7 +125,7 @@ public class WartMacro { double xdiff = Math.abs(savex - Minecraft.getMinecraft().thePlayer.posX); double zdiff = Math.abs(savez - Minecraft.getMinecraft().thePlayer.posZ); if(xdiff < 2 && zdiff < 2) { - Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("stuck detected.")); + ChatUtils.sendMessage("stuck detected."); KeyBinding.setKeyBindState(Minecraft.getMinecraft().gameSettings.keyBindLeft.getKeyCode(), true); Thread.sleep(500); KeyBinding.setKeyBindState(Minecraft.getMinecraft().gameSettings.keyBindLeft.getKeyCode(), false); |