Reach distance check is performed for all ranks now.

This commit is contained in:
UnknownShadow200 2017-09-20 22:55:59 +10:00
parent 604ec9ec87
commit b7a2b259ed

View File

@ -89,7 +89,7 @@ namespace MCGalaxy {
}
if (group.Permission == LevelPermission.Banned) return;
if (checkPlaceDist && group.Permission == LevelPermission.Guest) {
if (checkPlaceDist) {
int dx = Pos.BlockX - x, dy = Pos.BlockY - y, dz = Pos.BlockZ - z;
int diff = (int)Math.Sqrt(dx * dx + dy * dy + dz * dz);