fix: Fixes spawner deserialization (#1760)
This commit is contained in:
parent
d77668d77a
commit
328c6daa60
1 changed files with 4 additions and 2 deletions
|
|
@ -884,9 +884,11 @@ public abstract partial class BaseSpawner : Item, ISpawner
|
|||
{
|
||||
_guid = reader.ReadGuid();
|
||||
_returnOnDeactivate = reader.ReadBool();
|
||||
_entries = new List<SpawnerEntry>(reader.ReadInt());
|
||||
|
||||
for (var i = 0; i < _entries.Count; ++i)
|
||||
var count = reader.ReadInt();
|
||||
_entries = new List<SpawnerEntry>(count);
|
||||
|
||||
for (var i = 0; i < count; ++i)
|
||||
{
|
||||
var entry = new SpawnerEntry(this);
|
||||
entry.Deserialize(reader);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue