StorageAlert: Use seppuku chat log instead of ingameGUI.getChatGUI

This commit is contained in:
noil 2020-12-26 17:13:37 -05:00
parent 5cf588cfd8
commit 53d0d7f78c
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ public final class StorageAlertModule extends Module {
.setStyle(new Style()
.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new TextComponentString("\2476" + "Create a waypoint for this position.")))
.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, commandsModule.getPrefix().getValue() + "waypoint add " + String.format("x%s_z%s", position.x, position.y) + " " + position.x + " 120 " + position.y))));
Minecraft.getMinecraft().ingameGUI.getChatGUI().printChatMessage(textComponent);
Seppuku.INSTANCE.logcChat(textComponent);
}
}
if (this.mode.getValue() == Mode.NOTIFICATION || this.mode.getValue() == Mode.BOTH) {