We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87e0726 commit 5c5ff54Copy full SHA for 5c5ff54
src/protocol/mod.rs
@@ -1204,6 +1204,23 @@ impl Conn {
1204
}
1205
1206
1207
+ // Forge 1.13+
1208
+ if let Some(forge_data) = val.get("forgeData") {
1209
+ if let Some(mods) = forge_data.get("mods") {
1210
+ if let Value::Array(items) = mods {
1211
+ for item in items {
1212
+ if let Value::Object(obj) = item {
1213
+ let modid = obj.get("modId").unwrap().as_str().unwrap().to_string();
1214
+ let modmarker = obj.get("modmarker").unwrap().as_str().unwrap().to_string();
1215
+
1216
+ let version = modmarker;
1217
1218
+ forge_mods.push(crate::protocol::forge::ForgeMod { modid, version });
1219
+ }
1220
1221
1222
1223
1224
1225
Ok((Status {
1226
version: StatusVersion {
0 commit comments