Removed clamping as the game does it itself.

This commit is contained in:
0x3fcf1bbd 2022-02-16 12:12:50 +01:00 committed by GitHub
parent 354b3d4d3b
commit c6b04053a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}