Added a separate point maximum for polyhedral selections.

This commit is contained in:
TomyLobo
2013-08-16 08:16:37 +02:00
parent eb669ff834
commit 2a4e6ac93a
5 changed files with 20 additions and 1 deletions

View File

@ -905,6 +905,18 @@ public class WorldEdit {
}
}
public int getMaximumPolyhedronPoints(LocalPlayer player) {
if (player.hasPermission("worldedit.limit.unrestricted") || config.maxPolyhedronPoints < 0) {
return config.defaultMaxPolyhedronPoints;
} else {
if (config.defaultMaxPolyhedronPoints < 0) {
return config.maxPolyhedronPoints;
}
return Math.min(config.defaultMaxPolyhedronPoints,
config.maxPolyhedronPoints);
}
}
/**
* Checks to see if the specified radius is within bounds.
*