From 8b0d2066ca0f416bbd31d1bc4fb91aa6f07318a4 Mon Sep 17 00:00:00 2001 From: youpaishidifu <1@ypshidifu.cn> Date: Thu, 19 Nov 2026 12:46:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC125=E6=89=B9=E7=BB=AD6:=20Dialog=20aft?= =?UTF-8?q?erAction=20NONE=E2=86=92CLOSE=EF=BC=88=E4=BF=AE=E5=A4=8D=20paus?= =?UTF-8?q?e+NONE=20=E9=9D=9E=E6=B3=95=E7=BB=84=E5=90=88=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 日志根因:'Dialogs that pause the game must use after_action values that unpause it after user action!' - afterAction=NONE + 默认 pause=true 不合法 - 改为 afterAction=CLOSE(点击按钮后关闭对话框) --- src/main/java/Sdf1_login/CustomScreenManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/Sdf1_login/CustomScreenManager.java b/src/main/java/Sdf1_login/CustomScreenManager.java index 2a1b3a3..44a276b 100644 --- a/src/main/java/Sdf1_login/CustomScreenManager.java +++ b/src/main/java/Sdf1_login/CustomScreenManager.java @@ -446,7 +446,7 @@ public class CustomScreenManager implements Listener { Component.text(title) ) .canCloseWithEscape(false) - .afterAction(io.papermc.paper.registry.data.dialog.DialogBase.DialogAfterAction.NONE) + .afterAction(io.papermc.paper.registry.data.dialog.DialogBase.DialogAfterAction.CLOSE) .body(java.util.List.of( io.papermc.paper.registry.data.dialog.body.DialogBody.plainMessage( Component.text(body).color(net.kyori.adventure.text.format.NamedTextColor.GRAY),