Bug fixes - Click preview doesn't work

Former-commit-id: 80c8089a38d01a15fad7c423e883e41cb1993e72
This commit is contained in:
Ghost_chu committed 2020-12-06 21:54:13 +08:00
1 parent 77c2b166cc
commit ea4d9b6dbe
1 file changed
+1 -1
@@ -1041,7 +1041,7 @@ public class MsgUtil {
@NotNull String normalText) {
TextComponent component = getItemTextComponent(itemStack, player, normalText);
if (QuickShop.getPermissionManager().hasPermission(player, "quickshop.preview")) {
component.clickEvent(ClickEvent.clickEvent(ClickEvent.Action.RUN_COMMAND, MsgUtil.fillArgs(
component = component.clickEvent(ClickEvent.runCommand(MsgUtil.fillArgs(
"/qs silentpreview {0}",
shop.getRuntimeRandomUniqueId().toString())));
}