diff --git a/Nautilus/Crafting/ModCraftTreeLinkingNode.cs b/Nautilus/Crafting/ModCraftTreeLinkingNode.cs
index 0a132a9b..d1c84bb2 100644
--- a/Nautilus/Crafting/ModCraftTreeLinkingNode.cs
+++ b/Nautilus/Crafting/ModCraftTreeLinkingNode.cs
@@ -61,6 +61,9 @@ public ModCraftTreeTab AddTabNode(string nameID, string displayText, Sprite spri
///
/// Creates a new tab node for the crafting tree and links it to the calling node.
///
+ ///
+ /// Please note that this method will NOT set the language lines for the node and you must do it yourself.
+ ///
/// The name/ID of this node.
/// A new tab node linked to the root node and ready to use.
public ModCraftTreeTab AddTabNode(string nameID)
@@ -175,7 +178,6 @@ public void AddCraftingNode(IEnumerable techTypes)
{
foreach (TechType tType in techTypes)
{
- Assert.AreNotEqual(TechType.None, tType, "Attempt to add TechType.None as a crafting node.");
AddCraftingNode(tType);
}
}
@@ -190,12 +192,9 @@ public void AddCraftingNode(IEnumerable techTypes)
///
public void AddModdedCraftingNode(string moddedTechTypeName)
{
- if (EnumHandler.TryGetValue(moddedTechTypeName, out TechType techType))
- {
- ModCraftTreeCraft craftNode = new(techType);
- craftNode.LinkToParent(this);
-
- ChildNodes.Add(craftNode);
- }
+ var techTypeFound = EnumHandler.TryGetValue(moddedTechTypeName, out TechType techType);
+ Assert.IsTrue(techTypeFound, $"Could not find {moddedTechTypeName} when trying to AddModdedCraftingNode!");
+
+ AddCraftingNode(techType);
}
}
\ No newline at end of file