Skip to content
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.

Commit

Permalink
Fixes!
Browse files Browse the repository at this point in the history
  • Loading branch information
torralbaa committed Sep 12, 2020
1 parent cc0bb69 commit 65cdfa9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pack:
chmod a+x ./deb/usr/bin/mcpil
chmod a+x ./deb/usr/bin/mcpim
@echo "Package: mcpil" > ./deb/DEBIAN/control
@echo "Version: 0.6.1" >> ./deb/DEBIAN/control
@echo "Version: 0.6.2" >> ./deb/DEBIAN/control
@echo "Priority: optional" >> ./deb/DEBIAN/control
@echo "Architecture: armhf" >> ./deb/DEBIAN/control
@echo "Depends: libmcpi, mcpi-proxy, mcpi-central, libmodpi, python3" >> ./deb/DEBIAN/control
Expand All @@ -39,7 +39,7 @@ pack:
@echo "Vcs-Browser: https://github.com/MCPI-Devs/MCPIL" >> ./deb/DEBIAN/control
@echo "Vcs-Git: https://github.com/MCPI-Devs/MCPIL.git" >> ./deb/DEBIAN/control
@echo "Description: Simple launcher for Minecraft: Pi Edition.\n" >> ./deb/DEBIAN/control
dpkg-deb -b ./deb/ ./mcpil_0.6.1-1.deb
dpkg-deb -b ./deb/ ./mcpil_0.6.2-1.deb


clean:
Expand Down
16 changes: 11 additions & 5 deletions src/mcpil.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import glob
import json
import threading
from os import *
from os import getenv, kill, path, rename, mkdir, uname, getpid
from tkinter import *
from tkinter import ttk
from tkinter import simpledialog
Expand Down Expand Up @@ -196,12 +196,12 @@ def init():
except FileExistsError:
pass;

api_client.servers = [];
try:
api_client.servers = api_client.get_servers()["servers"];
update_servers();
except:
api_client.servers = [];
pass;
update_servers();
return 0;

def play_tab(parent):
Expand Down Expand Up @@ -375,6 +375,11 @@ def central_tab(parent):
servers.pack(pady=16);
servers_frame.pack();

try:
update_servers();
except:
pass;

buttons_frame = Frame(tab);
enable_server_button = Button(buttons_frame, text="Enable server", command=enable_central_server, state=DISABLED);
enable_server_button.pack(side=RIGHT, anchor=S);
Expand All @@ -388,7 +393,7 @@ def about_tab(parent):
title.config(font=("", 24));
title.pack();

version = Label(tab, text="v0.6.0");
version = Label(tab, text="v0.6.2");
version.config(font=("", 10));
version.pack();

Expand All @@ -403,7 +408,8 @@ def about_tab(parent):
return tab;

def main(args):
if "arm" not in uname()[4] and "aarch" not in uname()[4]:
arch = uname()[4];
if "arm" not in arch and "aarch" not in arch:
sys.stderr.write("Error: Minecraft Pi Launcher must run on a Raspberry Pi.\n");
return -1;

Expand Down

0 comments on commit 65cdfa9

Please sign in to comment.