From 5896b2eba4f202a977e9b1f0acb7d6b764fc2845 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Thu, 4 Oct 2018 01:12:29 +0200 Subject: [PATCH] Typo fix and neatify --- .../main/java/com/sk89q/worldedit/world/block/BlockState.java | 2 +- .../main/java/com/sk89q/worldedit/world/block/BlockTypes.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockState.java b/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockState.java index f06f8fb6b..017c988cc 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockState.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockState.java @@ -108,7 +108,7 @@ public abstract class BlockState implements BlockStateHolder { type = BlockTypes.get(key); if (type == null) { String input = key.toString(); - throw new SuggestInputParseException("Unkown block for " + input, input, () -> Stream.of(BlockTypes.values) + throw new SuggestInputParseException("Does not match a valid block type: " + input, input, () -> Stream.of(BlockTypes.values) .filter(b -> b.getId().contains(input)) .map(e1 -> e1.getId()) .collect(Collectors.toList()) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockTypes.java b/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockTypes.java index 2d14f2695..ab4c3bd0f 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockTypes.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockTypes.java @@ -1055,7 +1055,7 @@ public enum BlockTypes implements BlockType { } catch (NumberFormatException e) { } catch (IndexOutOfBoundsException e) {} - throw new SuggestInputParseException("Unkown block for " + inputLower, inputLower, () -> Stream.of(BlockTypes.values) + throw new SuggestInputParseException("Does not match a valid block type: " + inputLower, inputLower, () -> Stream.of(BlockTypes.values) .filter(b -> b.getId().contains(inputLower)) .map(e1 -> e1.getId()) .collect(Collectors.toList())