fixed: quick-play feature flags + missing version_type template
two related bugs surfaced by manual testing on 1.20.6 vanilla and fabric:
1. FeatureSet missing has_quick_plays_support / is_quick_play_singleplayer /
is_quick_play_multiplayer / is_quick_play_realms. mojang's profiles gate
the quick-play arguments behind these features. serde silently dropped
the unknown fields during deserialization, leaving an empty FeatureSet
that matched any context, so the conditional arguments emitted raw
${quickPlay*} placeholders to the JVM that template substitution then
warned about. add the fields explicitly and extend features_match to
reject any required feature the context doesn't set.
2. TemplateContext missing version_type. ${version_type} is an
unconditional template in modern vanilla's arguments.game (renders the
profile's "type" field, e.g. "release"). without it, the substitution
emitted a literal ${version_type} to minecraft and warned. add the
field, plumb the merged profile's type_ value through, default to
"release" when absent.
This commit is contained in:
1 parent
d88ab085b5
commit
f45351841c
4 files changed
+38
-18
No files matched your search
@@ -456,8 +456,6 @@ pub async fn launch(
|
||||
launcher_name: "rmcl",
|
||||
launcher_version: env!("CARGO_PKG_VERSION"),
|
||||
clientid: "0",
|
||||
resolution_width: "",
|
||||
resolution_height: "",
|
||||
};
|
||||
|
||||
let (upstream_jvm_args, game_args) =
|
||||
@@ -636,8 +634,6 @@ mod tests {
|
||||
launcher_version: "test",
|
||||
clientid: "0",
|
||||
version_type: "release",
|
||||
resolution_width: "",
|
||||
resolution_height: "",
|
||||
};
|
||||
let features = FeatureSet::default();
|
||||
let rule_ctx = RuleContext {
|
||||
|
||||
Reference in new issue
Block a user