v1.6.17.0 (Unto the Breach update)
This commit is contained in:
@@ -499,6 +499,10 @@ namespace Barotrauma
|
||||
{
|
||||
CastShadow = Prefab.CastShadow;
|
||||
}
|
||||
if (element?.GetAttribute(nameof(Indestructible)) == null)
|
||||
{
|
||||
Indestructible = Prefab.ConfigElement.GetAttributeBool(nameof(Indestructible), false);
|
||||
}
|
||||
|
||||
if (Prefab.Body)
|
||||
{
|
||||
@@ -583,7 +587,7 @@ namespace Barotrauma
|
||||
};
|
||||
foreach (KeyValuePair<Identifier, SerializableProperty> property in SerializableProperties)
|
||||
{
|
||||
if (!property.Value.Attributes.OfType<Editable>().Any()) { continue; }
|
||||
if (!property.Value.Attributes.OfType<Serialize>().Any()) { continue; }
|
||||
clone.SerializableProperties[property.Key].TrySetValue(clone, property.Value.GetValue(this));
|
||||
}
|
||||
if (FlippedX) clone.FlipX(false);
|
||||
|
||||
Reference in New Issue
Block a user