mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-25 06:04:46 -04:00
Reach distance check is performed for all ranks now.
This commit is contained in:
parent
604ec9ec87
commit
b7a2b259ed
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user