diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 8f48506c..475c94f4 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -503,7 +503,7 @@ namespace TShockAPI return; } - if (CheckRangePermission(tsplr, (int)args.Position.X, (int)args.Position.Y)) + if (CheckRangePermission(tsplr, args.Chest.x, args.Chest.y)) { args.Handled = true; return;