Add vanilla error message to precondition for DialogBaseImpl (#12831)

This commit is contained in:
partydev 2025-07-12 02:15:48 -07:00 committed by GitHub
parent 1bf6364b97
commit 76fb5060c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
} }