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

View File

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