From 6eca288aba18118523d23dfd69036c8fc8bb0314 Mon Sep 17 00:00:00 2001 From: Javyz <36089970+JavyzTaken@users.noreply.github.com> Date: Wed, 13 Nov 2024 20:33:43 +0100 Subject: [PATCH] Fixed Fargo's Mutant AddIndestructibleRectangle modcall using tile coords instead of world coords (#73) --- Utilities/WorldgenUtils.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Utilities/WorldgenUtils.cs b/Utilities/WorldgenUtils.cs index 37cadf07e3..3730a6265f 100644 --- a/Utilities/WorldgenUtils.cs +++ b/Utilities/WorldgenUtils.cs @@ -236,6 +236,10 @@ namespace CalamityMod // If Fargo's Mutant Mod is loaded, add to their Indestructible Rectangle list, which prevents structures from being trashed by Fargo's terrain tools. Mod fargos = ExternalMods.fargos; + paddedArea.X *= 16; + paddedArea.Y *= 16; + paddedArea.Width *= 16; + paddedArea.Height *= 16; fargos?.Call("AddIndestructibleRectangle", paddedArea); } }