第125批续6: Dialog afterAction NONE→CLOSE(修复 pause+NONE 非法组合)
Auto Release / build (push) Successful in 2m50s
Auto Release / build (push) Successful in 2m50s
日志根因:'Dialogs that pause the game must use after_action values that unpause it after user action!' - afterAction=NONE + 默认 pause=true 不合法 - 改为 afterAction=CLOSE(点击按钮后关闭对话框)
This commit is contained in:
@@ -446,7 +446,7 @@ public class CustomScreenManager implements Listener {
|
|||||||
Component.text(title)
|
Component.text(title)
|
||||||
)
|
)
|
||||||
.canCloseWithEscape(false)
|
.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(
|
.body(java.util.List.of(
|
||||||
io.papermc.paper.registry.data.dialog.body.DialogBody.plainMessage(
|
io.papermc.paper.registry.data.dialog.body.DialogBody.plainMessage(
|
||||||
Component.text(body).color(net.kyori.adventure.text.format.NamedTextColor.GRAY),
|
Component.text(body).color(net.kyori.adventure.text.format.NamedTextColor.GRAY),
|
||||||
|
|||||||
Reference in New Issue
Block a user