mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-26 01:32:02 -07:00
Add vanilla error message to precondition for DialogBaseImpl (#12831)
This commit is contained in:
@@ -20,7 +20,7 @@ public record DialogBaseImpl(
|
||||
) implements DialogBase {
|
||||
|
||||
public DialogBaseImpl {
|
||||
Preconditions.checkArgument(!pause || afterAction != DialogAfterAction.NONE);
|
||||
Preconditions.checkArgument(!pause || afterAction != DialogAfterAction.NONE, "Dialogs that pause the game must use after_action values that unpause it after user action!");
|
||||
body = List.copyOf(body);
|
||||
inputs = List.copyOf(inputs);
|
||||
}
|
||||
|
Reference in New Issue
Block a user