mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Typo fix and neatify
This commit is contained in:
parent
a26cf574de
commit
5896b2eba4
@ -108,7 +108,7 @@ public abstract class BlockState implements BlockStateHolder<BlockState> {
|
|||||||
type = BlockTypes.get(key);
|
type = BlockTypes.get(key);
|
||||||
if (type == null) {
|
if (type == null) {
|
||||||
String input = key.toString();
|
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))
|
.filter(b -> b.getId().contains(input))
|
||||||
.map(e1 -> e1.getId())
|
.map(e1 -> e1.getId())
|
||||||
.collect(Collectors.toList())
|
.collect(Collectors.toList())
|
||||||
|
@ -1055,7 +1055,7 @@ public enum BlockTypes implements BlockType {
|
|||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
} catch (IndexOutOfBoundsException 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))
|
.filter(b -> b.getId().contains(inputLower))
|
||||||
.map(e1 -> e1.getId())
|
.map(e1 -> e1.getId())
|
||||||
.collect(Collectors.toList())
|
.collect(Collectors.toList())
|
||||||
|
Loading…
Reference in New Issue
Block a user