diff --git a/src/main/java/me/zeroeightsix/kami/gui/kami/KamiGUI.java b/src/main/java/me/zeroeightsix/kami/gui/kami/KamiGUI.java index 4664da4c..a4ed2d25 100644 --- a/src/main/java/me/zeroeightsix/kami/gui/kami/KamiGUI.java +++ b/src/main/java/me/zeroeightsix/kami/gui/kami/KamiGUI.java @@ -423,9 +423,11 @@ public class KamiGUI extends GUI { int hposX = (int) (mc.player.posX * f); int hposZ = (int) (mc.player.posZ * f); - String direction = mc.player.getHorizontalFacing().toString(); + String direction = mc.player.getHorizontalFacing().toString().substring(0, 1).toUpperCase(); + String colouredSeparator = KamiMod.colour + "7 " + KamiMod.separator + KamiMod.colour + "r"; - coordsLabel.setText(String.format(" %sf%,d%s7, %sf%,d%s7, %sf%,d %s7(%sf%,d%s7, %sf%,d%s7, %sf%,d%s7)", + /* The 7 in the string formatter is the color */ + coordsLabel.setText(direction + colouredSeparator + String.format(" %sf%,d%s7, %sf%,d%s7, %sf%,d %s7(%sf%,d%s7, %sf%,d%s7, %sf%,d%s7)", KamiMod.colour, posX, KamiMod.colour, @@ -444,7 +446,7 @@ public class KamiGUI extends GUI { KamiMod.colour, hposZ, KamiMod.colour - ) + KamiMod.colour + "r " + direction.toUpperCase()); + )); } }); frame.addChild(coordsLabel);