Fix villager origin check

Closes #252
This commit is contained in:
Kurt
2020-05-25 08:42:35 -07:00
parent 0d64fa65d8
commit adda3c0bb4

View File

@@ -23,7 +23,7 @@ public string TownName
get => StringUtil.GetString(Data, 0x04, 10);
set => StringUtil.GetBytes(value, 10).CopyTo(Data, 0x04);
}
public byte[] GetTownIdentity() => Data.Slice(0x00, 20);
public byte[] GetTownIdentity() => Data.Slice(0x00, 4 + 20);
public uint PlayerID
{
@@ -37,7 +37,7 @@ public string PlayerName
set => StringUtil.GetBytes(value, 10).CopyTo(Data, 0x20);
}
public byte[] GetPlayerIdentity() => Data.Slice(0x1C, 20);
public byte[] GetPlayerIdentity() => Data.Slice(0x1C, 4 + 20);
public byte[] GetEventFlags() => Data.Slice(0x38, 0x100);
public void SetEventFlags(byte[] value) => value.CopyTo(Data, 0x38);