Skip to content

Commit ff447fd

Browse files
committed
Detect NeoForge 26.1 client logs
1 parent ba2eb13 commit ff447fd

4 files changed

Lines changed: 1582 additions & 2 deletions

File tree

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)