fix: Fixes gauntlet spawner and map item deserialization (#1170)

This commit is contained in:
Kamron Batman 2022-09-13 18:20:10 -07:00 • committed by GitHub
parent 4499c8397d
commit fe94aa050a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 71 additions and 65 deletions

View file

@ -284,17 +284,18 @@ public partial class MapItem : Item, ICraftable
{
// Version 0 doesn't serialize Facet/Editable, and count is not encoded
Bounds = reader.ReadRect2D();
_bounds = reader.ReadRect2D();
Width = reader.ReadInt();
Height = reader.ReadInt();
_width = reader.ReadInt();
_height = reader.ReadInt();
Protected = reader.ReadBool();
_protected = reader.ReadBool();
var count = reader.ReadInt();
_pins = new List<Point2D>(count);
for (var i = 0; i < count; i++)
{
Pins.Add(reader.ReadPoint2D());
_pins.Add(reader.ReadPoint2D());
}
}
}