Skip to content

Commit

Permalink
Remove log info
Browse files Browse the repository at this point in the history
  • Loading branch information
nutyworks committed Mar 18, 2024
1 parent c8a6448 commit 4e112e2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,6 @@ public void refresh() {
CommandDispatcher<CommandSource> commandDispatcher = this.client.player.networkHandler.getCommandDispatcher();
if (this.parse == null) {
this.parse = commandDispatcher.parse(stringReader, this.client.player.networkHandler.getCommandSource());
var args = this.parse.getContext().getLastChild().getArguments();
for (String key : args.keySet()) {
LOGGER.info(key + ": " + args.get(key).getResult());
}
}
int j = this.suggestingWhenEmpty ? stringReader.getCursor() : 1;
if (!(i < j || this.window != null && this.completingSuggestions)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -425,9 +425,6 @@ public void renderWidget(DrawContext context, int mouseX, int mouseY, float delt
int hh = this.textRenderer.fontHeight + 2;

if (hx <= mouseX && mouseX <= hx + hw && hy <= mouseY && mouseY <= hy + hh) {
if (isFocused()) {
context.setShaderColor(1, 1, 1, 0.5f);
}
Object result = arg.getResult();
if (result instanceof ItemStackArgument isa) {
try {
Expand All @@ -447,9 +444,6 @@ public void renderWidget(DrawContext context, int mouseX, int mouseY, float delt
} else {
context.drawTooltip(this.textRenderer, List.of(Text.of(result.getClass().toString()), Text.of(result.toString())), mouseX, mouseY);
}
if (isFocused()) {
context.setShaderColor(1, 1, 1, 1f);
}
}
}
}
Expand Down

0 comments on commit 4e112e2

Please sign in to comment.