Fix villager saving
This commit is contained in:
parent
badf6435be
commit
1cdd0fd321
1 changed files with 12 additions and 0 deletions
|
@ -211,6 +211,18 @@ public void Write(string townName)
|
|||
AcString.GetBytes(dataObject,
|
||||
(int) villagerOffsetData.GetField(field.Name + "Size").GetValue(Offsets)));
|
||||
}
|
||||
else if (fieldType == typeof(byte))
|
||||
{
|
||||
_saveData.Write(dataOffset, (byte)dataObject);
|
||||
}
|
||||
else if (fieldType == typeof(ushort))
|
||||
{
|
||||
_saveData.Write(dataOffset, (ushort)dataObject, _saveData.IsBigEndian);
|
||||
}
|
||||
else if (fieldType == typeof(uint))
|
||||
{
|
||||
_saveData.Write(dataOffset, (uint)dataObject, _saveData.IsBigEndian);
|
||||
}
|
||||
else if (fieldType == typeof(byte[]))
|
||||
{
|
||||
_saveData.Write(dataOffset, dataObject, false);
|
||||
|
|
Loading…
Reference in a new issue