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

Commit d3af6d8

Browse files
committed
Yet another fix: Thanks Python guys.
1 parent 8db953a commit d3af6d8

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ pack:
3232
sudo chmod a+x ./deb/usr/bin/mcpil
3333
sudo chmod a+x ./deb/usr/bin/mcpim
3434
@echo "Package: mcpil" > ./deb/DEBIAN/control
35-
@echo "Version: 0.7.2" >> ./deb/DEBIAN/control
35+
@echo "Version: 0.7.3" >> ./deb/DEBIAN/control
3636
@echo "Priority: optional" >> ./deb/DEBIAN/control
3737
@echo "Architecture: armhf" >> ./deb/DEBIAN/control
38-
@echo "Depends: libmcpi, mcpi-proxy, mcpi-central, libmodpi, libmcpi-docker, python3, libfreeimage3, libglfw3, minecraft-pi, python3-tk" >> ./deb/DEBIAN/control
38+
@echo "Depends: libmcpi, mcpi-proxy, mcpi-central, libmodpi, libmcpi-docker, python3, libfreeimage3, libglfw3, minecraft-pi, python3-tk, libgles2-mesa" >> ./deb/DEBIAN/control
3939
@echo "Maintainer: Alvarito050506 <[email protected]>" >> ./deb/DEBIAN/control
4040
@echo "Homepage: https://mcpi.tk" >> ./deb/DEBIAN/control
4141
@echo "Vcs-Browser: https://github.com/MCPI-Devs/MCPIL" >> ./deb/DEBIAN/control
4242
@echo "Vcs-Git: https://github.com/MCPI-Devs/MCPIL.git" >> ./deb/DEBIAN/control
4343
@echo "Description: Simple launcher for Minecraft: Pi Edition.\n" >> ./deb/DEBIAN/control
44-
dpkg-deb -b ./deb/ ./mcpil_0.7.2-1.deb
44+
dpkg-deb -b ./deb/ ./mcpil_0.7.3-1.deb
4545

4646
clean:
4747
rm -rf ./deb/

src/mcpil.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,10 @@ def save_world():
234234
old_world_name = old_worldname_entry.get();
235235
new_world_name = new_worldname_entry.get();
236236
world_file = open(f"{home}/.minecraft/games/com.mojang/minecraftWorlds/{old_world_name}/level.dat", "rb+");
237-
new_world = world_file.read().replace(bytes([len(old_world_name), 0x00]).join(bytes(old_world_name.encode())), bytes([len(old_world_name), 0x00]).join(bytes(old_world_name.encode())));
237+
new_world = world_file.read();
238+
old_bytes = bytes([len(old_world_name), 0x00]).join([old_world_name.encode()]);
239+
new_bytes = bytes([len(old_world_name), 0x00]).join([old_world_name.encode()]);
240+
new_world = new_world.replace(old_bytes, new_bytes);
238241
world_file.seek(0);
239242
world_file.write(new_world);
240243
world_file.seek(0x16);

0 commit comments

Comments
 (0)