From c9f54ecb0165ead695358e3eefb0ef202942d54f Mon Sep 17 00:00:00 2001 From: wizjany Date: Tue, 26 Apr 2016 19:40:25 -0400 Subject: [PATCH] Only negative radius allowed for //butcher is -1. --- .../java/com/sk89q/worldedit/command/UtilityCommands.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/UtilityCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/UtilityCommands.java index d5783c6c9..e3e505007 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/UtilityCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/UtilityCommands.java @@ -395,6 +395,10 @@ public class UtilityCommands { // there might be a better way to do this but my brain is fried right now if (args.argsLength() > 0) { // user inputted radius, override the default radius = args.getInteger(0); + if (radius < -1) { + actor.printError("Use -1 to remove all mobs in loaded chunks"); + return; + } if (config.butcherMaxRadius != -1) { // clamp if there is a max if (radius == -1) { radius = config.butcherMaxRadius;