diff --git a/ILEditing/ILChanges.cs b/ILEditing/ILChanges.cs index 1f45e81914..a361f46e9d 100644 --- a/ILEditing/ILChanges.cs +++ b/ILEditing/ILChanges.cs @@ -101,7 +101,7 @@ namespace CalamityMod.ILEditing cursor.Emit(OpCodes.Ldloc, 6); cursor.EmitDelegate>(unclampedValue => { - unclampedValue.X = MathHelper.Clamp(unclampedValue.X, SulphurousSea.BiomeWidth + 25, Main.maxTilesX - SulphurousSea.BiomeWidth); + unclampedValue.X = MathHelper.Clamp(unclampedValue.X, SulphurousSea.BiomeWidth + 25, Main.maxTilesX - SulphurousSea.BiomeWidth - 25); return unclampedValue; }); cursor.Emit(OpCodes.Stloc, 6);