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

Commit

Permalink
Fix eternal bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
torralbaa committed Nov 13, 2020
1 parent 8f0a2ea commit 8db953a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ pack:
sudo chmod a+x ./deb/usr/bin/mcpil
sudo chmod a+x ./deb/usr/bin/mcpim
@echo "Package: mcpil" > ./deb/DEBIAN/control
@echo "Version: 0.7.1" >> ./deb/DEBIAN/control
@echo "Version: 0.7.2" >> ./deb/DEBIAN/control
@echo "Priority: optional" >> ./deb/DEBIAN/control
@echo "Architecture: armhf" >> ./deb/DEBIAN/control
@echo "Depends: libmcpi, mcpi-proxy, mcpi-central, libmodpi, libmcpi-docker, python3, libfreeimage3, libglfw3, minecraft-pi" >> ./deb/DEBIAN/control
@echo "Depends: libmcpi, mcpi-proxy, mcpi-central, libmodpi, libmcpi-docker, python3, libfreeimage3, libglfw3, minecraft-pi, python3-tk" >> ./deb/DEBIAN/control
@echo "Maintainer: Alvarito050506 <donfrutosgomez@gmail.com>" >> ./deb/DEBIAN/control
@echo "Homepage: https://mcpi.tk" >> ./deb/DEBIAN/control
@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.7.1-1.deb
dpkg-deb -b ./deb/ ./mcpil_0.7.2-1.deb

clean:
rm -rf ./deb/
Expand Down
15 changes: 9 additions & 6 deletions src/mcpil.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
];
preset_features = [
str(),
"Fix Bow & Arrow|Fix Attacking|Mob Spawning|Fancy Graphics|Fix Sign Placement|ModPi",
"Touch GUI|Survival Mode|Fix Bow & Arrow|Fix Attacking|Mob Spawning|Fancy Graphics|Disable Autojump By Default|Fix Sign Placement|Show Block Outlines"
"Fix Bow & Arrow|Fix Attacking|Mob Spawning|Fancy Graphics|Fix Sign Placement|Expand Creative Inventory|ModPi",
"Touch GUI|Survival Mode|Fix Bow & Arrow|Fix Attacking|Mob Spawning|Disable Autojump By Default|Fix Sign Placement|Fancy Graphics"
];

features = [
Expand All @@ -60,8 +60,10 @@
"Mob Spawning",
"Fancy Graphics",
"Disable Autojump By Default",
"Fix Sign Placement",
"Show Block Outlines",
"Fix Sign Placement",
"Expand Creative Inventory",
"Peaceful Mode",
"ModPi"
];
enabled_features = str();
Expand Down Expand Up @@ -196,7 +198,7 @@ def update_dlls():
dll_files = glob("/usr/lib/libmcpi-docker/lib*.so");
bk = environ.get("LD_LIBRARY_PATH") or str();
environ.update({
"LD_LIBRARY_PATH": f"/opt/minecraft-pi/minecraft-pi/lib/brcm:/usr/lib/libmcpi-docker:/usr/arm-linux-gnueabihf/lib:{bk}",
"LD_LIBRARY_PATH": f"/opt/minecraft-pi/minecraft-pi/lib/brcm:/usr/lib/libmcpi-docker:/usr/lib/arm-linux-gnueabihf:{bk}",
"LD_PRELOAD": ":".join(dll_files)
});
return 0;
Expand Down Expand Up @@ -538,7 +540,7 @@ def about_tab(parent):
title.config(font=("", 24));
title.pack();

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

Expand All @@ -562,7 +564,7 @@ def main(args):

window = Tk();
window.title("MCPI Laucher");
window.geometry("480x348");
window.geometry("512x400");
window.resizable(False, False);
window.iconphoto(True, PhotoImage(file="/usr/share/icons/hicolor/48x48/apps/mcpil.png"));

Expand Down Expand Up @@ -593,3 +595,4 @@ def main(args):

if __name__ == "__main__":
sys.exit(main(sys.argv));

0 comments on commit 8db953a

Please sign in to comment.