Fix ClassicWorld spawn rotation deserialization

This commit is contained in:
Andrew Goulas 2019-05-20 18:20:55 +03:00
parent 2237175da1
commit 9300ae50a2

View File

@ -523,8 +523,8 @@ static void Cw_Callback_2(struct NbtTag* tag) {
if (IsTag(tag, "X")) { p->Spawn.X = NbtTag_I16(tag); return; }
if (IsTag(tag, "Y")) { p->Spawn.Y = NbtTag_I16(tag); return; }
if (IsTag(tag, "Z")) { p->Spawn.Z = NbtTag_I16(tag); return; }
if (IsTag(tag, "H")) { p->SpawnRotY = Math_Deg2Packed(NbtTag_U8(tag)); return; }
if (IsTag(tag, "P")) { p->SpawnHeadX = Math_Deg2Packed(NbtTag_U8(tag)); return; }
if (IsTag(tag, "H")) { p->SpawnRotY = Math_Packed2Deg(NbtTag_U8(tag)); return; }
if (IsTag(tag, "P")) { p->SpawnHeadX = Math_Packed2Deg(NbtTag_U8(tag)); return; }
}
static BlockID cw_curID;