Skip to content

Commit

Permalink
Merge pull request #95 from aternosorg/latest-forge-neoforge-logs
Browse files Browse the repository at this point in the history
Detect + add latest logs for Forge 1.21.3 (client+server) and NeoForge 1.21.3 (client+server)
  • Loading branch information
pavog authored Nov 5, 2024
2 parents 874a5d1 + 2b6a516 commit 7b614b3
Show file tree
Hide file tree
Showing 21 changed files with 2,969 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ class ForgeVanillaVersionInformation extends VanillaVersionInformation
public static function getPatterns(): array
{
return array_merge(parent::getPatterns(), [
"/Received command line version data {0,2}: MC Version: '(". static::$vanillaVersionPattern .")'/",
"/--fml\.mcVersion, (". static::$vanillaVersionPattern .")/",
"/Forge Mod Loader version ". ForgeVersionInformation::getVersionPattern() ." for Minecraft (". static::$vanillaVersionPattern.") loading/",
"/Received command line version data {0,2}: MC Version: '(" . static::$vanillaVersionPattern . ")'/",
"/--fml\.mcVersion, (" . static::$vanillaVersionPattern . ")/",
"/Forge Mod Loader version " . ForgeVersionInformation::getVersionPattern() . " for Minecraft (" . static::$vanillaVersionPattern . ") loading/",
"/Forge mod loading, version " . ForgeVersionInformation::getVersionPattern() . ", for MC (" . static::$vanillaVersionPattern . ")/",
]);
}
}
3 changes: 3 additions & 0 deletions src/Log/Minecraft/Vanilla/Forge/ForgeClientLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ public static function getDetectors(): array
(new MultiPatternDetector())
->addPattern('/^\[[^\]]+\] \[main\/INFO\]( \[[^\]]+\])?: ModLauncher running: .*--fml.forgeVersion/m')
->addPattern('/^\[[^\]]+\] \[main\/INFO\]( \[[^\]]+\])?: Launching target \'(fml|forge)client\' with arguments/m'),
(new MultiPatternDetector())
->addPattern('/^\[[^\]]+\] \[main\/INFO\]( \[[^\]]+\])?: ModLauncher running: .*--version, forge-/m')
->addPattern('/^\[[^\]]+\] \[main\/INFO\]( \[[^\]]+\])?: Launching target \'forge_client\' with arguments/m'),
(new MultiPatternDetector())
->addPattern('/^\[[^\]]+\] \[main\/INFO\]( \[[^\]]+\])?: Forge Mod Loader version/m')
->addPattern('/^\[[^\]]+\] \[main\/INFO\]( \[[^\]]+\])?: Launching wrapped minecraft \{net\.minecraft\.client/m')
Expand Down
2 changes: 1 addition & 1 deletion test/data/Vanilla/Forge/Arclight/arclight-1192.json
Original file line number Diff line number Diff line change
Expand Up @@ -2860,7 +2860,7 @@
"information": [
{
"message": "Minecraft version: 1.19.2",
"counter": 2,
"counter": 3,
"entry": {
"level": 6,
"time": null,
Expand Down
2 changes: 1 addition & 1 deletion test/data/Vanilla/Forge/Mohist/mohist-1-16-5.json
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@
"information": [
{
"message": "Minecraft version: 1.16.5",
"counter": 2,
"counter": 3,
"entry": {
"level": 6,
"time": null,
Expand Down
2 changes: 1 addition & 1 deletion test/data/Vanilla/Forge/Mohist/mohist-1-18-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -2404,7 +2404,7 @@
"information": [
{
"message": "Minecraft version: 1.18.2",
"counter": 2,
"counter": 3,
"entry": {
"level": 6,
"time": null,
Expand Down
Loading

0 comments on commit 7b614b3

Please sign in to comment.