From 372c59cdbca1f4918433f80daf0672b412089957 Mon Sep 17 00:00:00 2001 From: ORelio Date: Mon, 7 Dec 2020 19:01:32 +0100 Subject: [PATCH] Fix Entity location Z not correctly shown (#1370) --- MinecraftClient/Commands/Entitycmd.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MinecraftClient/Commands/Entitycmd.cs b/MinecraftClient/Commands/Entitycmd.cs index 304318bb..48f709ca 100644 --- a/MinecraftClient/Commands/Entitycmd.cs +++ b/MinecraftClient/Commands/Entitycmd.cs @@ -56,7 +56,7 @@ namespace MinecraftClient.Commands else if (health < 15) color = "§e"; // Yellow - string location = String.Format("X:{0}, Y:{1}, Z:{2}", Math.Round(entity.Location.X, 2), Math.Round(entity.Location.Y, 2), Math.Round(entity.Location.Y, 2)); + string location = String.Format("X:{0}, Y:{1}, Z:{2}", Math.Round(entity.Location.X, 2), Math.Round(entity.Location.Y, 2), Math.Round(entity.Location.Z, 2)); string done = Translations.Replace("([cmd.entityCmd.entity]): {0}\n [MCC] Type: {1}", id, type); if (!String.IsNullOrEmpty(nickname)) done += Translations.Replace("\n [MCC] ([cmd.entityCmd.nickname]): {0}", nickname);