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:
Aaron Hill committed 2017-11-11 18:46:44 -05:00
1 parent 5a9add8144
commit 899fc9f19a
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);