From ebf515a577f16c87d65b9066b424b3085dc66994 Mon Sep 17 00:00:00 2001 From: noil Date: Tue, 29 Dec 2020 19:41:26 -0500 Subject: [PATCH] Fixes search command and xray command list output to chat --- .../me/rigamortis/seppuku/impl/command/SearchCommand.java | 2 +- .../java/me/rigamortis/seppuku/impl/command/XrayCommand.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/rigamortis/seppuku/impl/command/SearchCommand.java b/src/main/java/me/rigamortis/seppuku/impl/command/SearchCommand.java index 1a4d73c..0c4e449 100644 --- a/src/main/java/me/rigamortis/seppuku/impl/command/SearchCommand.java +++ b/src/main/java/me/rigamortis/seppuku/impl/command/SearchCommand.java @@ -157,7 +157,7 @@ public final class SearchCommand extends Command { .setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new TextComponentString(Block.getBlockById(i).getLocalizedName()))))); } - Minecraft.getMinecraft().ingameGUI.getChatGUI().printChatMessage(msg); + Seppuku.INSTANCE.logcChat(msg); } else { Seppuku.INSTANCE.logChat("You don't have any search ids"); } diff --git a/src/main/java/me/rigamortis/seppuku/impl/command/XrayCommand.java b/src/main/java/me/rigamortis/seppuku/impl/command/XrayCommand.java index f5f90ae..2c6db7c 100644 --- a/src/main/java/me/rigamortis/seppuku/impl/command/XrayCommand.java +++ b/src/main/java/me/rigamortis/seppuku/impl/command/XrayCommand.java @@ -154,7 +154,7 @@ public final class XrayCommand extends Command { } if (xray.getIds().size() > 0) { - final TextComponentString msg = new TextComponentString("\247Xray IDs: "); + final TextComponentString msg = new TextComponentString("\2477Xray IDs: "); for (int i : xray.getIds()) { msg.appendSibling(new TextComponentString("\2477[\247a" + i + "\2477] ") @@ -162,7 +162,7 @@ public final class XrayCommand extends Command { .setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new TextComponentString(Block.getBlockById(i).getLocalizedName()))))); } - Minecraft.getMinecraft().ingameGUI.getChatGUI().printChatMessage(msg); + Seppuku.INSTANCE.logcChat(msg); } else { Seppuku.INSTANCE.logChat("You don't have any search ids"); }