Fix Y offset calculation for multi-variant mod walls being overwritten due to IL code injection mistake.
This commit is contained in:
1 parent
e67d663c55
commit
f2bc3bd6bf
1 file changed
+1
-1
@@ -39,7 +39,7 @@ namespace CalamityMod.Systems
|
||||
return;
|
||||
}
|
||||
|
||||
if (!cursor.TryGotoNext(x => x.MatchStfld<Rectangle>(nameof(Rectangle.Y))))
|
||||
if (!cursor.TryGotoNext(MoveType.After, x => x.MatchStfld<Rectangle>(nameof(Rectangle.Y))))
|
||||
{
|
||||
LogILFailure("Stfld::Rectangle.Y was not found!");
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user