Commit fixes an issue which paused game after exiting console menu with ESCAPE.
import org.terasology.utilities.Assets;
import org.terasology.engine.Time;
+
/**
* This system controls the client's in-game menus (Pause screen, Death screen, HUDs and overlays).
*/
@@ -71,6 +72,8 @@ public void onTogglePause(PauseButton event, EntityRef entity) {
nuiManager.toggleScreen("engine:pauseMenu");
event.consume();
}
+ if ((event.getState() == ButtonState.DOWN) || (event.getState() == ButtonState.UP))
+ {
if(getPlayerCount()==1) {
if (!time.isPaused()) {
time.setPaused(true);
@@ -79,6 +82,7 @@ public void onTogglePause(PauseButton event, EntityRef entity) {
}
}
}
+ }
@ReceiveEvent(components = ClientComponent.class)
public void onScreenshotCapture(ScreenshotButton event, EntityRef entity) {
