Fixed range checking to use the range we specify instead of hardcoded 32.
This commit is contained in:
parent
e503abcab9
commit
491eafd484
1 changed files with 1 additions and 1 deletions
|
|
@ -1078,7 +1078,7 @@ namespace TShockAPI
|
||||||
|
|
||||||
public static bool CheckRangePermission(TSPlayer player, int x, int y, int range = 32)
|
public static bool CheckRangePermission(TSPlayer player, int x, int y, int range = 32)
|
||||||
{
|
{
|
||||||
if (Config.RangeChecks && ((Math.Abs(player.TileX - x) > 32) || (Math.Abs(player.TileY - y) > 32)))
|
if (Config.RangeChecks && ((Math.Abs(player.TileX - x) > range) || (Math.Abs(player.TileY - y) > range)))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue