geforkt von Mirrors/FastAsyncWorldEdit
Fixes #1181
Dieser Commit ist enthalten in:
Ursprung
3cf283a65b
Commit
d7763c8542
@ -103,8 +103,7 @@ public class InspectBrush extends BrushTool {
|
|||||||
BlockState blockTo = BlockState.getFromOrdinal(to);
|
BlockState blockTo = BlockState.getFromOrdinal(to);
|
||||||
TranslatableComponent msg = Caption.of("fawe.worldedit.tool.tool.inspect.info", name, blockFrom, blockTo, ageFormatted);
|
TranslatableComponent msg = Caption.of("fawe.worldedit.tool.tool.inspect.info", name, blockFrom, blockTo, ageFormatted);
|
||||||
|
|
||||||
String cmd = edit.getCommand();
|
TextComponent hover = TextComponent.of("/tool inspect", TextColor.GOLD);
|
||||||
TextComponent hover = TextComponent.of(cmd, TextColor.GOLD);
|
|
||||||
String infoCmd = "//history summary " + uuid + " " + index;
|
String infoCmd = "//history summary " + uuid + " " + index;
|
||||||
msg = msg.hoverEvent(HoverEvent.of(HoverEvent.Action.SHOW_TEXT, hover));
|
msg = msg.hoverEvent(HoverEvent.of(HoverEvent.Action.SHOW_TEXT, hover));
|
||||||
msg = msg.clickEvent(ClickEvent.of(ClickEvent.Action.RUN_COMMAND, infoCmd));
|
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));
|
player.print(Caption.of("fawe.worldedit.tool.tool.inspect.info.footer", count));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
} catch (Throwable e) {
|
|
||||||
LOGGER.error("E throw", e);
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren