Option to set aliases for StructurePrefabs

This commit is contained in:
Joonas Rikkonen
2017-11-14 21:04:49 +02:00
parent 5d525865bf
commit 913a102591
4 changed files with 15 additions and 18 deletions
@@ -839,7 +839,7 @@ namespace Barotrauma
foreach (MapEntityPrefab ep in MapEntityPrefab.list)
{
if (ep.Name == name)
if (ep.Name == name || (ep.Aliases != null && ep.Aliases.Contains(name)))
{
s = new Structure(rect, (StructurePrefab)ep, submarine);
s.Submarine = submarine;