Fixed ruin doors being possible to open with the select key. Closes #268

This commit is contained in:
Joonas Rikkonen
2018-02-22 14:36:48 +02:00
parent 83c02504ea
commit 1fe2a1916f
@@ -149,7 +149,8 @@ namespace Barotrauma.Items.Components
: base(item, element) : base(item, element)
{ {
isHorizontal = element.GetAttributeBool("horizontal", false); isHorizontal = element.GetAttributeBool("horizontal", false);
canBePicked = element.GetAttributeBool("canbepicked", false);
foreach (XElement subElement in element.Elements()) foreach (XElement subElement in element.Elements())
{ {
string texturePath = subElement.GetAttributeString("texture", ""); string texturePath = subElement.GetAttributeString("texture", "");