From 64cae57319f1575f956b13995a5d8083eee32d08 Mon Sep 17 00:00:00 2001 From: thislooksfun Date: Thu, 19 Mar 2020 18:14:55 -0500 Subject: [PATCH] Fix clamping issue --- .../platform/binding/PrimitiveBindings.java | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/binding/PrimitiveBindings.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/binding/PrimitiveBindings.java index 991b27ee2..7c5436818 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/binding/PrimitiveBindings.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/binding/PrimitiveBindings.java @@ -105,13 +105,13 @@ public class PrimitiveBindings extends Bindings { final double radiusX, radiusY, radiusZ; switch (radii.length) { case 1: - radiusX = radiusY = radiusZ = Math.max(1, PrimitiveBindings.parseNumericInput(radii[0])); + radiusX = radiusY = radiusZ = PrimitiveBindings.parseNumericInput(radii[0]); break; case 3: - radiusX = Math.max(1, PrimitiveBindings.parseNumericInput(radii[0])); - radiusY = Math.max(1, PrimitiveBindings.parseNumericInput(radii[1])); - radiusZ = Math.max(1, PrimitiveBindings.parseNumericInput(radii[2])); + radiusX = PrimitiveBindings.parseNumericInput(radii[0]); + radiusY = PrimitiveBindings.parseNumericInput(radii[1]); + radiusZ = PrimitiveBindings.parseNumericInput(radii[2]); break; default: @@ -135,12 +135,12 @@ public class PrimitiveBindings extends Bindings { final double radiusX, radiusZ; switch (radii.length) { case 1: - radiusX = radiusZ = Math.max(1, PrimitiveBindings.parseNumericInput(radii[0])); + radiusX = radiusZ = PrimitiveBindings.parseNumericInput(radii[0]); break; case 2: - radiusX = Math.max(1, PrimitiveBindings.parseNumericInput(radii[0])); - radiusZ = Math.max(1, PrimitiveBindings.parseNumericInput(radii[1])); + radiusX = PrimitiveBindings.parseNumericInput(radii[0]); + radiusZ = PrimitiveBindings.parseNumericInput(radii[1]); break; default: @@ -163,13 +163,13 @@ public class PrimitiveBindings extends Bindings { final double radiusX, radiusY, radiusZ; switch (radii.length) { case 1: - radiusX = radiusY = radiusZ = Math.max(1, PrimitiveBindings.parseNumericInput(radii[0])); + radiusX = radiusY = radiusZ = PrimitiveBindings.parseNumericInput(radii[0]); break; case 3: - radiusX = Math.max(1, PrimitiveBindings.parseNumericInput(radii[0])); - radiusY = Math.max(1, PrimitiveBindings.parseNumericInput(radii[1])); - radiusZ = Math.max(1, PrimitiveBindings.parseNumericInput(radii[2])); + radiusX = PrimitiveBindings.parseNumericInput(radii[0]); + radiusY = PrimitiveBindings.parseNumericInput(radii[1]); + radiusZ = PrimitiveBindings.parseNumericInput(radii[2]); break; default: @@ -192,12 +192,12 @@ public class PrimitiveBindings extends Bindings { final double radiusX, radiusZ; switch (radii.length) { case 1: - radiusX = radiusZ = Math.max(1, parseNumericInput(radii[0])); + radiusX = radiusZ = parseNumericInput(radii[0]); break; case 2: - radiusX = Math.max(1, parseNumericInput(radii[0])); - radiusZ = Math.max(1, parseNumericInput(radii[1])); + radiusX = parseNumericInput(radii[0]); + radiusZ = parseNumericInput(radii[1]); break; default: