Add vanilla error message to precondition for DialogBaseImpl (#12831)
This commit is contained in:
parent
1bf6364b97
commit
76fb5060c1
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue