Skip to content

Commit

Permalink
Fixed too strict definition check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Karel Hovorka committed Nov 28, 2022
1 parent d5a7680 commit 4ec4896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Ivxr.SePlugin/Control/Definitions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private Dictionary<Type, Type> GetParentsAsDict(List<Type> parents)
public static void CheckDefinitionIdExistsAndEnabled(MyDefinitionId id)
{
var blockDefinition = MyDefinitionManager.Static
.GetDefinitionsOfType<MyCubeBlockDefinition>()
.GetAllDefinitions()
.FirstOrDefault(bd => bd.Id == id);
if (blockDefinition == null)
{
Expand Down

0 comments on commit 4ec4896

Please sign in to comment.