Fixed Fargo's Mutant AddIndestructibleRectangle modcall using tile coords instead of world coords (#73)

This commit is contained in:
Javyz authored and Ozzatron committed 2024-11-13 14:37:38 -05:00
1 parent 92f1d605a6
commit 6eca288aba
1 file changed
+4
+4
View File
@@ -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);
}
}