Skip to content

Commit 7b614b3

Browse files
authored
Merge pull request #95 from aternosorg/latest-forge-neoforge-logs
Detect + add latest logs for Forge 1.21.3 (client+server) and NeoForge 1.21.3 (client+server)
2 parents 874a5d1 + 2b6a516 commit 7b614b3

21 files changed

+2969
-13
lines changed

src/Analysis/Information/Forge/ForgeVanillaVersionInformation.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ class ForgeVanillaVersionInformation extends VanillaVersionInformation
1717
public static function getPatterns(): array
1818
{
1919
return array_merge(parent::getPatterns(), [
20-
"/Received command line version data {0,2}: MC Version: '(". static::$vanillaVersionPattern .")'/",
21-
"/--fml\.mcVersion, (". static::$vanillaVersionPattern .")/",
22-
"/Forge Mod Loader version ". ForgeVersionInformation::getVersionPattern() ." for Minecraft (". static::$vanillaVersionPattern.") loading/",
20+
"/Received command line version data {0,2}: MC Version: '(" . static::$vanillaVersionPattern . ")'/",
21+
"/--fml\.mcVersion, (" . static::$vanillaVersionPattern . ")/",
22+
"/Forge Mod Loader version " . ForgeVersionInformation::getVersionPattern() . " for Minecraft (" . static::$vanillaVersionPattern . ") loading/",
23+
"/Forge mod loading, version " . ForgeVersionInformation::getVersionPattern() . ", for MC (" . static::$vanillaVersionPattern . ")/",
2324
]);
2425
}
2526
}

src/Log/Minecraft/Vanilla/Forge/ForgeClientLog.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ public static function getDetectors(): array
2222
(new MultiPatternDetector())
2323
->addPattern('/^\[[^\]]+\] \[main\/INFO\]( \[[^\]]+\])?: ModLauncher running: .*--fml.forgeVersion/m')
2424
->addPattern('/^\[[^\]]+\] \[main\/INFO\]( \[[^\]]+\])?: Launching target \'(fml|forge)client\' with arguments/m'),
25+
(new MultiPatternDetector())
26+
->addPattern('/^\[[^\]]+\] \[main\/INFO\]( \[[^\]]+\])?: ModLauncher running: .*--version, forge-/m')
27+
->addPattern('/^\[[^\]]+\] \[main\/INFO\]( \[[^\]]+\])?: Launching target \'forge_client\' with arguments/m'),
2528
(new MultiPatternDetector())
2629
->addPattern('/^\[[^\]]+\] \[main\/INFO\]( \[[^\]]+\])?: Forge Mod Loader version/m')
2730
->addPattern('/^\[[^\]]+\] \[main\/INFO\]( \[[^\]]+\])?: Launching wrapped minecraft \{net\.minecraft\.client/m')

test/data/Vanilla/Forge/Arclight/arclight-1192.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2860,7 +2860,7 @@
28602860
"information": [
28612861
{
28622862
"message": "Minecraft version: 1.19.2",
2863-
"counter": 2,
2863+
"counter": 3,
28642864
"entry": {
28652865
"level": 6,
28662866
"time": null,

test/data/Vanilla/Forge/Mohist/mohist-1-16-5.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@
418418
"information": [
419419
{
420420
"message": "Minecraft version: 1.16.5",
421-
"counter": 2,
421+
"counter": 3,
422422
"entry": {
423423
"level": 6,
424424
"time": null,

test/data/Vanilla/Forge/Mohist/mohist-1-18-2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2404,7 +2404,7 @@
24042404
"information": [
24052405
{
24062406
"message": "Minecraft version: 1.18.2",
2407-
"counter": 2,
2407+
"counter": 3,
24082408
"entry": {
24092409
"level": 6,
24102410
"time": null,

0 commit comments

Comments
 (0)