Fix Entity location Z not correctly shown (#1370)

This commit is contained in:
ORelio 2020-12-07 19:01:32 +01:00 committed by GitHub
parent 1c0826a045
commit 372c59cdbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);