Skip to content

Commit 0adcde5

Browse files
authored
Merge pull request #139 from aternosorg/nf-client-26-1
Detect NeoForge 26.1 client logs
2 parents ba2eb13 + ff447fd commit 0adcde5

File tree

4 files changed

+1582
-2
lines changed

4 files changed

+1582
-2
lines changed

src/Log/Minecraft/Vanilla/NeoForge/NeoForgeClientLog.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Aternos\Codex\Minecraft\Log\Minecraft\Vanilla\NeoForge;
44

55
use Aternos\Codex\Detective\MultiPatternDetector;
6+
use Aternos\Codex\Detective\SinglePatternDetector;
67
use Aternos\Codex\Minecraft\Log\Type\ClientLogTypeInterface;
78

89
class NeoForgeClientLog extends NeoForgeLog implements ClientLogTypeInterface
@@ -13,9 +14,10 @@ class NeoForgeClientLog extends NeoForgeLog implements ClientLogTypeInterface
1314
public static function getDetectors(): array
1415
{
1516
return [
16-
(new MultiPatternDetector())
17+
new MultiPatternDetector()
1718
->addPattern('/^\[[^\]]+\] \[main\/INFO\]( \[[^\]]+\])?: ModLauncher running: .*--fml.neoForgeVersion/m')
1819
->addPattern('/^\[[^\]]+\] \[main\/INFO\]( \[[^\]]+\])?: Launching target \'(fml|forge)client\' with arguments/m'),
20+
new SinglePatternDetector()->setPattern('/^\[[^\]]+\] \[main\/INFO\]( \[[^\]]+\])?: Starting FancyModLoader version [0-9.]+ \(CLIENT/m'),
1921
];
2022
}
21-
}
23+
}

0 commit comments

Comments
 (0)