From d7763c8542f563920e680d8c2953cfa3d3209a72 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Tue, 13 Jul 2021 17:20:37 +0200 Subject: [PATCH] Fixes #1181 --- .../fastasyncworldedit/core/object/brush/InspectBrush.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/object/brush/InspectBrush.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/object/brush/InspectBrush.java index a34069696..ac6b74bcb 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/object/brush/InspectBrush.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/object/brush/InspectBrush.java @@ -103,8 +103,7 @@ public class InspectBrush extends BrushTool { BlockState blockTo = BlockState.getFromOrdinal(to); TranslatableComponent msg = Caption.of("fawe.worldedit.tool.tool.inspect.info", name, blockFrom, blockTo, ageFormatted); - String cmd = edit.getCommand(); - TextComponent hover = TextComponent.of(cmd, TextColor.GOLD); + TextComponent hover = TextComponent.of("/tool inspect", TextColor.GOLD); String infoCmd = "//history summary " + uuid + " " + index; msg = msg.hoverEvent(HoverEvent.of(HoverEvent.Action.SHOW_TEXT, hover)); msg = msg.clickEvent(ClickEvent.of(ClickEvent.Action.RUN_COMMAND, infoCmd)); @@ -114,8 +113,6 @@ public class InspectBrush extends BrushTool { player.print(Caption.of("fawe.worldedit.tool.tool.inspect.info.footer", count)); } catch (IOException e) { throw new RuntimeException(e); - } catch (Throwable e) { - LOGGER.error("E throw", e); } return true; }