geforkt von Mirrors/FastAsyncWorldEdit
Typo fix and neatify
Dieser Commit ist enthalten in:
Ursprung
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())
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren