mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Fixes #1072
This commit is contained in:
parent
a7cbf1dd0a
commit
d48808f111
@ -425,7 +425,7 @@ public final class WorldEdit {
|
|||||||
|
|
||||||
public void checkMaxBrushRadius(Expression radius) throws MaxBrushRadiusException {
|
public void checkMaxBrushRadius(Expression radius) throws MaxBrushRadiusException {
|
||||||
double val = radius.evaluate();
|
double val = radius.evaluate();
|
||||||
checkArgument(val >= 0);
|
checkArgument(val >= 0, "Radius must be a positive number.");
|
||||||
if (getConfiguration().maxBrushRadius > 0) {
|
if (getConfiguration().maxBrushRadius > 0) {
|
||||||
if (val > getConfiguration().maxBrushRadius) {
|
if (val > getConfiguration().maxBrushRadius) {
|
||||||
throw new MaxBrushRadiusException();
|
throw new MaxBrushRadiusException();
|
||||||
|
Loading…
Reference in New Issue
Block a user