From 7188d27aaae7a2ad8fa53d0cd71b5be6db9f5e96 Mon Sep 17 00:00:00 2001 From: Kenzie Togami Date: Mon, 29 Apr 2019 22:11:15 -0700 Subject: [PATCH] Fix minor bugs in converters --- .../sk89q/worldedit/command/argument/BooleanConverter.java | 2 +- .../com/sk89q/worldedit/command/argument/VectorConverter.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/argument/BooleanConverter.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/argument/BooleanConverter.java index 5d4ad5891..731a736b3 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/argument/BooleanConverter.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/argument/BooleanConverter.java @@ -34,7 +34,7 @@ public class BooleanConverter { .putAll(true, "on", "t", "true", "y", "yes") .build() ) - .errorMessage(arg -> "Not a boolean value" + arg) + .errorMessage(arg -> "Not a boolean value: " + arg) .build() ); } diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/argument/VectorConverter.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/argument/VectorConverter.java index bc91296d6..05ac95573 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/argument/VectorConverter.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/argument/VectorConverter.java @@ -53,14 +53,14 @@ public class VectorConverter implements ArgumentConverter { commandManager.registerConverter(Key.of(Vector2.class), new VectorConverter<>( doubleConverter, - 3, + 2, cmps -> Vector2.at(cmps.get(0), cmps.get(1)), "vector with x and z" )); commandManager.registerConverter(Key.of(BlockVector3.class), new VectorConverter<>( intConverter, - 2, + 3, cmps -> BlockVector3.at(cmps.get(0), cmps.get(1), cmps.get(2)), "block vector with x, y, and z" ));