mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 12:42:05 -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 {
|
) implements DialogBase {
|
||||||
|
|
||||||
public DialogBaseImpl {
|
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);
|
body = List.copyOf(body);
|
||||||
inputs = List.copyOf(inputs);
|
inputs = List.copyOf(inputs);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user