Skip to content

Commit

Permalink
chore(StateMainMenu): include message in toString representation for …
Browse files Browse the repository at this point in the history
…debugging (#4918)
  • Loading branch information
keturn authored Oct 2, 2021
1 parent b858dac commit 3f2e51f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.core.modes;

import com.google.common.base.MoreObjects;
import org.terasology.engine.audio.AudioManager;
import org.terasology.engine.config.Config;
import org.terasology.engine.config.TelemetryConfig;
Expand Down Expand Up @@ -160,4 +161,11 @@ public boolean isHibernationAllowed() {
private void updateUserInterface(float delta) {
nuiManager.update(delta);
}

@Override
public String toString() {
return MoreObjects.toStringHelper(this)
.add("messageOnLoad", messageOnLoad)
.toString();
}
}

0 comments on commit 3f2e51f

Please sign in to comment.