mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-19 17:39:46 +00:00
Use getFormattedMessage instead of getFormat
Under certain circumstances, getFormat may return the empty string. Using getFormattedMessage ensures that 'Validating minecraft' will always be detected.
This commit is contained in:
1 file changed
+1
-1
@@ -779,7 +779,7 @@ public final class MixinEnvironment implements ITokenProvider {
|
||||
|
||||
@Override
|
||||
public void append(LogEvent event) {
|
||||
if (event.getLevel() == Level.DEBUG && "Validating minecraft".equals(event.getMessage().getFormat())) {
|
||||
if (event.getLevel() == Level.DEBUG && "Validating minecraft".equals(event.getMessage().getFormattedMessage())) {
|
||||
// transition to INIT
|
||||
MixinEnvironment.gotoPhase(Phase.INIT);
|
||||
|
||||
|
||||
Reference in new issue
Block a user