Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions kOS.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@
<Company></Company>
<Version>1.5.1.0</Version>
</PropertyGroup>
<PropertyGroup>
<KSPRoot>E:\Games\Kerbal Space Program RSS</KSPRoot>
</PropertyGroup>
Comment thread
AntonKuzin marked this conversation as resolved.
Outdated
</Project>
4 changes: 1 addition & 3 deletions src/kOS/Suffixed/PartModuleField/PartModuleFields.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ protected virtual ListValue AllFieldNames()
/// <returns>true if it is on the PartModule, false if it is not</returns>
public virtual BooleanValue HasField(StringValue fieldName)
{
return FieldIsVisible(GetField(fieldName));
return GetField(fieldName) != null;
}

/// <summary>
Expand Down Expand Up @@ -443,8 +443,6 @@ protected Structure GetKSPFieldValue(StringValue suffixName)
BaseField field = GetField(suffixName);
if (field == null)
throw new KOSLookupFailException("FIELD", suffixName, this);
if (!FieldIsVisible(field))
throw new KOSLookupFailException("FIELD", suffixName, this, true);
Structure obj = FromPrimitiveWithAssert(field.GetValue(partModule));
return obj;
}
Expand Down