Fixed Fargo's Mutant AddIndestructibleRectangle modcall using tile coords instead of world coords (#73)
This commit is contained in:
1 parent
92f1d605a6
commit
6eca288aba
1 file changed
+4
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user