From ed4220ab7b32a5e3aab85b068cc88cd074e24138 Mon Sep 17 00:00:00 2001 From: kianzzarrin Date: Fri, 16 Dec 2022 00:39:27 +0200 Subject: [PATCH] fixed stretch nodes --- .../Patches/NetNodePatches/CalculateMaterialCommons.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NodeController/Patches/NetNodePatches/CalculateMaterialCommons.cs b/NodeController/Patches/NetNodePatches/CalculateMaterialCommons.cs index c411e56..37e7c81 100644 --- a/NodeController/Patches/NetNodePatches/CalculateMaterialCommons.cs +++ b/NodeController/Patches/NetNodePatches/CalculateMaterialCommons.cs @@ -87,7 +87,7 @@ public static void PatchCheckFlags(List codes, int occurance, M int insertIndex1 = index + 1; // at this point boloean is in stack CodeInstruction LDArg_NodeID = GetLDArg(method, "nodeID"); // push nodeID into stack - CodeInstruction LDLoc_segmentID = BuildSegnentLDLocFromPrevSTLoc(codes, index, counter: 1); // push segmentID into stack + CodeInstruction LDLoc_segmentID = BuildSegnentLDLocFromPrevSTLoc(codes, index, counter: 2); // push segmentID into stack { // Insert material = CalculateMaterial(material, nodeID, segmentID) var newInstructions = new[] {