Typo fix and neatify

This commit is contained in:
NotMyFault 2018-10-04 01:12:29 +02:00
parent a26cf574de
commit 5896b2eba4
2 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ public abstract class BlockState implements BlockStateHolder<BlockState> {
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())

View File

@ -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())