From 7296fcee834d08f8d6e17812c8daf0756f443dab Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Sat, 2 Dec 2023 14:23:28 -0500 Subject: [PATCH] Update Documentation --- docs/DEDICATED_SERVER.md | 7 +------ docs/INSTALL.md | 3 +++ launcher/src/client/launcher.cpp | 7 +++++++ 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/docs/DEDICATED_SERVER.md b/docs/DEDICATED_SERVER.md index a9242fadf..77e50375f 100644 --- a/docs/DEDICATED_SERVER.md +++ b/docs/DEDICATED_SERVER.md @@ -4,12 +4,7 @@ The dedicated server is a version of Minecraft: Pi Edition modified to run in a This server is also compatible with MCPE Alpha v0.6.1[^1]. ## Setup - -### Debian Package -To use, install and run ``minecraft-pi-reborn-server``. It will generate the world and ``server.properties`` in the current directory. - -### Docker Image -An official Docker image is also provided: [thebrokenrail/minecraft-pi-reborn-server](https://hub.docker.com/r/thebrokenrail/minecraft-pi-reborn-server). +To use, install and run the ``minecraft-pi-reborn-server`` AppImage. It will generate the world and ``server.properties`` in the current directory. ## Server Limitations * Player data is not saved because of limitations with MCPE LAN worlds diff --git a/docs/INSTALL.md b/docs/INSTALL.md index 51178d517..1c3689782 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -5,6 +5,9 @@ Download packages [here](https://gitea.thebrokenrail.com/minecraft-pi-reborn/min ### System Requirements * Debian Buster/Ubuntu 18.04 Or Higher +* FUSE 2 + * Debian/Ubuntu: ``sudo apt install libfuse2`` + * Arch: ``sudo pacman -S fuse2`` * Client-Only Dependencies * Graphics Drivers * GTK+ 3 diff --git a/launcher/src/client/launcher.cpp b/launcher/src/client/launcher.cpp index 55457c710..0ff44cc3e 100644 --- a/launcher/src/client/launcher.cpp +++ b/launcher/src/client/launcher.cpp @@ -150,6 +150,13 @@ int main(int argc, char *argv[]) { ERR("$HOME Isn't Set"); } + // Check For Display +#ifndef MCPI_HEADLESS_MODE + if (getenv("DISPLAY") == NULL || getenv("WAYLAND_DISPLAY") == NULL) { + ERR("No display attached! Make sure $DISPLAY or $WAYLAND_DISPLAY is set."); + } +#endif + // Print Features for (int i = 1; i < argc; i++) { if (strcmp(argv[i], "--print-available-feature-flags") == 0) {