From 5f3516c3ceeb7fe2b47b3fe8891e34d40d335869 Mon Sep 17 00:00:00 2001 From: tastymeatball <44088711+tastymeatball@users.noreply.github.com> Date: Fri, 12 Aug 2022 16:58:23 +0200 Subject: [PATCH] Fixed error getting Z coordinate (#3567) --- PKHeX.Core/Saves/Substructures/Gen6/Situation6.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.Core/Saves/Substructures/Gen6/Situation6.cs b/PKHeX.Core/Saves/Substructures/Gen6/Situation6.cs index 2e71b1495..ecfceb90a 100644 --- a/PKHeX.Core/Saves/Substructures/Gen6/Situation6.cs +++ b/PKHeX.Core/Saves/Substructures/Gen6/Situation6.cs @@ -31,7 +31,7 @@ public sealed class Situation6 : SaveBlock public float Z { - get => ReadSingleLittleEndian(Data.AsSpan(Offset + 0x14)); + get => ReadSingleLittleEndian(Data.AsSpan(Offset + 0x14)) / 18; set { var span = Data.AsSpan(Offset + 0x14);