From 1fe2a1916f200ee66ad1b6e40447cf1b74f192a0 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Thu, 22 Feb 2018 14:36:48 +0200 Subject: [PATCH] Fixed ruin doors being possible to open with the select key. Closes #268 --- Barotrauma/BarotraumaShared/Source/Items/Components/Door.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaShared/Source/Items/Components/Door.cs b/Barotrauma/BarotraumaShared/Source/Items/Components/Door.cs index c78fe89b2..20e3900d5 100644 --- a/Barotrauma/BarotraumaShared/Source/Items/Components/Door.cs +++ b/Barotrauma/BarotraumaShared/Source/Items/Components/Door.cs @@ -149,7 +149,8 @@ namespace Barotrauma.Items.Components : base(item, element) { isHorizontal = element.GetAttributeBool("horizontal", false); - + canBePicked = element.GetAttributeBool("canbepicked", false); + foreach (XElement subElement in element.Elements()) { string texturePath = subElement.GetAttributeString("texture", "");