From c6b04053a3327c24d1a31ab40e02e658e56a79e0 Mon Sep 17 00:00:00 2001 From: 0x3fcf1bbd <81617230+0x3fcf1bbd@users.noreply.github.com> Date: Wed, 16 Feb 2022 12:12:50 +0100 Subject: [PATCH] Removed clamping as the game does it itself. --- TShockAPI/TSPlayer.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/TShockAPI/TSPlayer.cs b/TShockAPI/TSPlayer.cs index 47f4e714..6a04bf0c 100644 --- a/TShockAPI/TSPlayer.cs +++ b/TShockAPI/TSPlayer.cs @@ -1343,10 +1343,6 @@ namespace TShockAPI { try { - x = TShock.Utils.Clamp(x, Main.maxTilesX, 0); - y = TShock.Utils.Clamp(y, Main.maxTilesY, 0); - width = TShock.Utils.Clamp(x + width, Main.maxTilesX, 0) - x; - length = TShock.Utils.Clamp(y + length, Main.maxTilesY, 0) - x; NetMessage.SendTileSquare(Index, x, y, width, length, changeType); return true; }