Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 02:20:07 +01:00
Fixes #15
Dieser Commit ist enthalten in:
Ursprung
edde2ebe51
Commit
d26e7e142f
@ -253,7 +253,7 @@ public class GeneralCommands {
|
|||||||
|
|
||||||
int found = 0;
|
int found = 0;
|
||||||
|
|
||||||
for (ItemType searchType : ItemTypes.values()) {
|
for (ItemType searchType : ItemType.REGISTRY) {
|
||||||
if (found >= 15) {
|
if (found >= 15) {
|
||||||
actor.print(BBC.getPrefix() + "Too many results!");
|
actor.print(BBC.getPrefix() + "Too many results!");
|
||||||
break;
|
break;
|
||||||
@ -269,7 +269,7 @@ public class GeneralCommands {
|
|||||||
|
|
||||||
for (String alias : Sets.newHashSet(searchType.getId(), searchType.getName())) {
|
for (String alias : Sets.newHashSet(searchType.getId(), searchType.getName())) {
|
||||||
if (alias.contains(query)) {
|
if (alias.contains(query)) {
|
||||||
actor.print(searchType.getId() + " (" + searchType.getName() + ")");
|
actor.print(BBC.getPrefix() + searchType.getId() + " (" + searchType.getName() + ")");
|
||||||
++found;
|
++found;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -284,7 +284,7 @@ public class OptionsCommands {
|
|||||||
|
|
||||||
int found = 0;
|
int found = 0;
|
||||||
|
|
||||||
for (ItemType searchType : ItemTypes.values()) {
|
for (ItemType searchType : ItemType.REGISTRY) {
|
||||||
if (found >= 15) {
|
if (found >= 15) {
|
||||||
actor.print(BBC.getPrefix() + "Too many results!");
|
actor.print(BBC.getPrefix() + "Too many results!");
|
||||||
break;
|
break;
|
||||||
@ -300,7 +300,7 @@ public class OptionsCommands {
|
|||||||
|
|
||||||
for (String alias : Sets.newHashSet(searchType.getId(), searchType.getName())) {
|
for (String alias : Sets.newHashSet(searchType.getId(), searchType.getName())) {
|
||||||
if (alias.contains(query)) {
|
if (alias.contains(query)) {
|
||||||
actor.print(BBC.getPrefix() + "#" + type.getId() + " (" + type.getName() + ")");
|
actor.print(BBC.getPrefix() + searchType.getId() + " (" + searchType.getName() + ")");
|
||||||
++found;
|
++found;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren