From f2bc3bd6bf1010d56e7913db73067bec1da8f70f Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Mon, 17 Feb 2025 21:29:17 -0500 Subject: [PATCH] Fix Y offset calculation for multi-variant mod walls being overwritten due to IL code injection mistake. --- Systems/Graphic/MultiVariantWallDrawingSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Systems/Graphic/MultiVariantWallDrawingSystem.cs b/Systems/Graphic/MultiVariantWallDrawingSystem.cs index 15300be89e..7bd266dac7 100644 --- a/Systems/Graphic/MultiVariantWallDrawingSystem.cs +++ b/Systems/Graphic/MultiVariantWallDrawingSystem.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Systems return; } - if (!cursor.TryGotoNext(x => x.MatchStfld(nameof(Rectangle.Y)))) + if (!cursor.TryGotoNext(MoveType.After, x => x.MatchStfld(nameof(Rectangle.Y)))) { LogILFailure("Stfld::Rectangle.Y was not found!"); return;