Skip to content

Commit

Permalink
fix: remove spammy debug logs from tab auto complete (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
sekwah41 authored Dec 12, 2024
1 parent 791e11e commit 46b6156
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class TriggerBlockTag implements Tag.AutoComplete, Tag.Split {
@Inject
private ServerContainer serverContainer;

public static String TAG_NAME = "triggerblock";
public static final String TAG_NAME = "triggerblock";

private final TagType[] tagTypes = new TagType[] {TagType.PORTAL};

Expand All @@ -37,9 +37,6 @@ public String description() {

@Override
public List<String> autoComplete(String argData) {
System.out.println("Auto complete");
System.out.println(argData);

var triggerBlocks = serverContainer.getCommonTriggerBlocks()
.stream()
.filter(block -> block.contains(argData))
Expand All @@ -51,10 +48,4 @@ public List<String> autoComplete(String argData) {

return triggerBlocks;
}

@Nullable
@Override
public String splitString() {
return ",";
}
}

0 comments on commit 46b6156

Please sign in to comment.