Fix other minor suggestion bugs

This commit is contained in:
Kenzie Togami
2019-07-27 23:49:11 -07:00
parent 76b608f90b
commit 50cea37439
3 changed files with 5 additions and 3 deletions

View File

@ -51,7 +51,7 @@ public final class SuggestionHelper {
if (tag.isEmpty() || tag.equals("#")) {
return Stream.of("##", "##*");
}
if (tag.startsWith("#")) {
if (tag.startsWith("##")) {
if (tag.equals("##")) {
return Stream.concat(Stream.of("##*"), getNamespacedRegistrySuggestions(BlockCategory.REGISTRY, tag.substring(2)).map(s -> "##" + s));
} else if (tag.equals("##*") && allowRandom) {