Correct the Tile attachTo variable's stloc index in GenerateMainPath

This was reading from the wrong index and always passing null, so the
doorway groups were never taking effect at all for the first main path.
This commit is contained in:
Zaggy1024 2026-05-07 18:07:24 -05:00
parent aabe3a723b
commit 8a35d8cb54
3 changed files with 2 additions and 2 deletions

View file

@ -81,7 +81,7 @@ namespace DunGenPlus.Patches {
archSequence.AddBasic(OpCodes.Callvirt, setNodeFunction);
var attachToSequence = new InstructionSequenceStandard("attach to");
attachToSequence.AddBasicLocal(OpCodes.Stloc_S, 13);
attachToSequence.AddBasicLocal(OpCodes.Stloc_S, 14);
foreach(var instruction in instructions){
if (archSequence.VerifyStage(instruction)){

View file

@ -27,7 +27,7 @@ namespace DunGenPlus {
internal const string modGUID = "dev.ladyalice.dungenplus";
private const string modName = "Dungeon Generation Plus";
private const string modVersion = "1.5.0";
private const string modVersion = "1.5.1";
internal readonly Harmony Harmony = new Harmony(modGUID);