Removed the Entity.MoveWithLevel property, fixed artifacts and other items from ruins not being saved. Closes #694
This commit is contained in:
@@ -719,7 +719,7 @@ namespace Barotrauma
|
||||
|
||||
foreach (MapEntity e in subEntities)
|
||||
{
|
||||
if (e.MoveWithLevel || e is Item) continue;
|
||||
if (e is Item) continue;
|
||||
|
||||
if (e is LinkedSubmarine)
|
||||
{
|
||||
@@ -1262,7 +1262,7 @@ namespace Barotrauma
|
||||
|
||||
foreach (MapEntity e in MapEntity.mapEntityList)
|
||||
{
|
||||
if (e.MoveWithLevel || e.Submarine != this || !e.ShouldBeSaved) continue;
|
||||
if (e.Submarine != this || !e.ShouldBeSaved) continue;
|
||||
e.Save(element);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user