fix: Fixes loading the world when types are deleted (#2055)
This commit is contained in:
parent
9f50ae431a
commit
e708bd7f69
1 changed files with 3 additions and 2 deletions
|
|
@ -375,7 +375,6 @@ public class GenericEntityPersistence<T> : GenericPersistence, IGenericEntityPer
|
|||
// Skip this entry
|
||||
if (t == null)
|
||||
{
|
||||
dataReader.Seek(entry.Length, SeekOrigin.Current);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
@ -383,7 +382,9 @@ public class GenericEntityPersistence<T> : GenericPersistence, IGenericEntityPer
|
|||
|
||||
try
|
||||
{
|
||||
var pos = dataReader.Position;
|
||||
dataReader.Seek(entry.Position, SeekOrigin.Begin);
|
||||
var pos = entry.Position;
|
||||
|
||||
t.Deserialize(dataReader);
|
||||
var lengthDeserialized = dataReader.Position - pos;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue